« first day (2414 days earlier)      last day (2533 days later) » 

2:00 PM
lol
 
@NikiC the issue I was bothered by is that you can do new ArrayObject([1, 2, 3]) IIRC
 
@Andrea but does that cause issues?
I don't think that causes issues
 
@NikiC yes, it made the test suite segfault
 
@Andrea That's not an issue :P
 
@NikiC …true :p
 
bob
2:01 PM
@Andrea now i'm getting Warning: pathinfo() expects parameter 1 to be string, array given in
 
I'm tempted to “fix” ArrayObject but maybe we should just abolish it. Would anyone notice?
inb4 WordPress relies on it
…hmm.
…oh dear.
WordPress still uses SVN. Why am I not surprised.
 
@Andrea ... yes ...
 
I can happily report that WordPress proper does not use ArrayObject. It does support it, though…
@NikiC :p
@NikiC we could fix the ArrayObject-making-numeric-properties-on-other-objects issue without removing support for modifying property tables, actually
should we? probably not, but when has that ever stopped me?
 
@Andrea We could, but it seems like such a waste
I mean who uses that anyway?
 
2:08 PM
@NikiC people trying to make our lives harder
 
It's even called ArrayObject, dammit
Not ObjectObject
I hate everything in PHP that uses HASH_OF
Such a stupid idea
 
@NikiC RFC for PHP 7.2: ObjectObject
 
It's your fault. You didn't add a ObjectObject so I went for ArrayObject out of necessity
 
@Andrea I actually think that having PropertyIterator might be nice
That would be ObjectObject ... sortof ^^
 
@NikiC ah, you mean like foreach but reliable? I'd like that too
that bothers me a lot about foreach actually
that it's overridable
Oh wow I get told about flags now. Huh.
 
2:10 PM
@Andrea yes
I think that's the one legit use case in that area ... iirc ArrayObject actually iterates the properties
 
ah, circumventing Traversable
but couldn't you do like… foreach ((array)$foo as $prop => $value) ?
 
@Andrea You could, but then you get to deal with name mangling
foreach normally gives you only the visible properties
 
@NikiC …isn't that broken anyway for ArrayObject?
 
While array cast gives you everything, mangled
@Andrea Is it?
 
@NikiC well, aren't properties mangled differently by class? (I can't remember.)
it would break for those, I… think
 
2:13 PM
I'm confused now
I don't actually know what ArrayObject does for object iteration
 
$ php -r 'class Foo { public $public; protected $protected; private $private; } var_dump((array)(new Foo));'
array(3) {
  ["public"]=>
  NULL
  ["*protected"]=>
  NULL
  ["Fooprivate"]=>
  NULL
}
hmm
 php -r 'class Foo { public $public; protected $protected; private $private; } var_dump(new ArrayObject(new Foo));'
object(ArrayObject)#1 (1) {
  ["storage":"ArrayObject":private]=>
  object(Foo)#2 (3) {
    ["public"]=>
    NULL
    ["protected":protected]=>
    NULL
    ["private":"Foo":private]=>
    NULL
  }
}
ahahaha
yep, it doesn't correct the name mangling :D
 
When iterating ArrayObject only gives you the public properties
god dammit
It should be giving you the visible properties
okay...
Plan of action: 1. Introduce PropertyIterator 2. Kill ArrayObject on objects
 
ArrayObject is a testament to the fact that a simple operation can produce interesting complexity
it's “just” an object that assumes arbitrary arrays or other proptables as its own
which has several consequences and few of them are useful
@NikiC how would PropertyIterator determine visibility? point of instantiation?
 
@Andrea Good question
 
Wes
@NikiC why
 
2:17 PM
I think explicit scope defaulting to point of instantiation might be best
 
@NikiC maybe public function __construct(object $object, classname $visibleFrom = NULL)
 
@Andrea yes, that
 
better name might be $pointOfView
 
@Andrea $scope ^^
 
@NikiC ah, yes, right :p
 
2:19 PM
We could also have a mode that gives you all properties, as that's not a problem for an iterator ... but not sure if that would actually be useful without also providing the associated class for each property
 
I feel like trying to implement this right now.
SPL?
 
yeah
do it :P
 
Does such a small feature need an RFC?
 
yeah
 
;-;
eh, it's an easy one to write
…oh, right, ArrayObject is an SPL feature…
 
2:23 PM
Why does the php extended linting prefer !@mkdir($cronDir, $mode) && !is_dir($cronDir) over the flipped version: !is_dir($cronDir) && !@mkdir($cronDir, $mode)
 
placement of the @? (beats me.)
 
php extended linting?
 
they do different things in the first case
 
People actually use that?
 
Hello.
 
2:24 PM
Hello.
 
Hello.
 
Saw it in sebastian's presentation, trying it out
 
Did some1 worked with HWIOauthBundle? Symfony - FacebookLogin? :)
 
@Sean oh, because TOCTTOU. possible directory created/destroyed between is_dir and mkdir…?
 
Anonymous
@Kiddo best to just ask your question with code :)
 
Anonymous
2:25 PM
@ircmaxell o/
 
does anyone here understand Fantasy Land (Haskell algebra) and want to mentor me a bit? i want a better understanding of it so that i can use it in my own documentation and contribute to stuff like PhpFp
i'll pay you :)
 
@Andrea Possibly :p I'll do some digging
 
I have installed HWIOauthBundle. Facebook login is working, but i have a problem. If I have an account already registered (without facebook connection), and i try to login with facebook, it's trying to register me again (because i don't have the facebook_id in my database). My questions is: how can I update the facebook_id if my email account is already in database?
 
@JayIsTooCommon /me waves
 
hi all, sorry for asking but maybe anyone is good with woocomerce ? and would be happy to give tips.
 
2:29 PM
@Andrea Yeah, it's a race condition check
 
what the hell
ArrayObject and ArrayIterator are kin
…why
 
@Sean The second one makes more sense to me
@Andrea :)
 
@NikiC But you won't know whether the dir is created
 
@PeeHaa you do from mkdir return value
 
You do? O.o
!!docs mkdir
 
2:35 PM
[ mkdir() ] Makes directory
 
@PeeHaa returns true on success
 
@PeeHaa well yes, what would the return value be for otherwise?
 
@Jimbo's mom?
yeah brainfart. I am agree
 
@PeeHaa Is @Jimbo's mom boolean?
 
Anonymous
@PeeHaa shit can't fart
 
2:37 PM
@NikiC Nope. She's a constant yes
4
 
you know… I kinda wish we could have PHP standard library stuff that was written in PHP. because then SPL might make more sense.
 
@Andrea Everyone wishes that all the time ^^
 
Anonymous
@PeeHaa quality.
 
@PeeHaa ha
@Andrea It might be time to make that a reality...
 
@NikiC it's not like it'd be particularly hard to do
 
2:39 PM
@Andrea Somewhat tricky to do it performantly though
 
@NikiC autoloading!!!
 
And distribution
 
@NikiC my idea is to just pack in PHP files in a virtual filesystem-esque thing as constant strings
 
That's what I would go for as well
Managing paths in external distribution is a pita
 
php-ext://spl2/ArrayObject.php
 
2:41 PM
@Andrea pcs basically does that
 
@NikiC PCS?
 
Though I'd really try to forgo the virtual filesystem part
@Andrea What autoloading doesn't cover (apart from functions of course) is things like get_defined_classes
We do need at least the symbol information upfront
 
@NikiC ah. I don't necessarily mean a stream layer thing. could be much simpler.
 
Even if we lazy-compile the implementation
 
@NikiC yeah, was thinking about that
oh I know
evil face
 
2:42 PM
And of course, it all needs to integrate with opcache as well
 
PHP_FUNCTION_SOURCE(get_magic_quotes_gpc,
    function get_magic_quotes_gpc() {
    }
)
 
@Andrea ... no.
 
@NikiC I realised immediately after that, uh, C won't actually let me do this. aw.
@NikiC easy solution to the symbol info thing is to generate that from the PHP with a… dare I say bash script? PHP file hopefully.
On the other hand, requiring all extensions to be C has some advantages.
It makes them faster, at least theoretically.
 
Theoretically ^^
 
@Andrea cough SystemLib in HHVM cough
 
2:47 PM
Perhaps more importantly, it keeps the pain of internals development fresh in the mind, encouraging improvement of the Zend API :p
 
@Andrea I don't think that really worked out ^^
 
@NikiC shhhh :p
 
Speaking of... I should resurrect stuff like my php-array-api.h header
 
we should improve arginfo
and by “we” I mean “I”
 
Maybe.... Eh.... PHP 7's hash API did improve a lot.
 
2:49 PM
@Andrea Allowing PHP in extensions would take care of arginfo as well
 
@Sara PHP 7 was a godsend. Is @NikiC the messiah?
 
I wanna add scalar types to arginfo but @NikiC went and made a rational argument against it. Meanie.
 
Hello
 
@NikiC but arginfo would still exist
 
We could still specify the signatures in PHP and just link to the internal impl. HHVM basically ^^
 
2:49 PM
@NikiC …we could do that now, actually.
 
@Andrea Yes, but generated. What do you want to improve?
@Sara When is PHP 8 coming out again?
 
@NikiC …I'm not sure actually. oh well.
 
That would actually be good to know, really
 
is htmlspecialchars enough to avoid xss?
 
Anonymous
12
Q: When used correctly, is htmlspecialchars sufficient for protection against all XSS?

Alf EatonIf the following statements are true, All documents are served with the HTTP header Content-Type: text/html; charset=UTF-8. All HTML attributes are enclosed in either single or double quotes. There are no <script> tags in the document. are there any cases where htmlspecialchars($input, ENT_QU...

 
2:52 PM
@user7594714 Depends on the context
 
@NikiC If we hold to the "five year per major" plan, 2020
 
@Sara Hrm...
That's too long?
 
We only have two minors actually released so far :p
@NikiC If someone (coughnikitacough) has a compelling reason, we can always go early.
 
@Sara PHP is holding minors hostage?!
 
@Sara Yes, yes, but we urgently have to drop support for half of PHP!
7
 
2:54 PM
I can't believe you terrorists.
Shameless.
 
@Andrea and have a compile-time option to pre-compile them into the binary (parsed and optimized of course)
 
"Not minors you idiot, minors!" --Alan Rickman RIP
 
@ircmaxell I was thinking about that, yeah. Opcache's file cache isn't portable… but wait, it is for a given PHP binary! (…I think?)
 
@ircmaxell The idea of an on-disk repo isn't a completely terrible idea.
 
@Andrea Is it?
 
2:55 PM
@NikiC Why wouldn't it be?
 
@Sara Experience
 
hahaha
Oh wait, you're talking about distributing a pre-compiled systemlib with like, deb/rpm packages or whatever?
That seems like overkill if you can just have a one-time hit to produce them on-demand.
And the format had better damn well be stable for a given binary-host pair
 
@Sara oh def, but give a flag to pre-compile in a binary for production installs (no need to parse those files on every request if we don't have to)
 
@Sara the hope is stability for a given binary, but uh…
 
@ircmaxell Yes, a persistent cache
 
2:59 PM
:)
 
I'm curious what could break between installs of a given binary
Like, the on-disk cache is just opcodes and maybe a few flags, right?
 
Let's think next-level. Pre-JITed standard library.
 
it uses memory relative offsets, so if any compile change results in a different binary memory layout, it'll break on resotre
 
…so, Zephyr? RPython? …Recki-CT? :p
 
o_O
phpCompiler
 
3:01 PM
@ircmaxell Of course, but the suggestion was a repo that would be stable per binary
A re-compile means a new binary and thus an invalidated cache
Also.... afk a second, I really should be wearing clothing at some point.
 
We would have to reload some pointers (CEs etc) anyway
As those are not stable between executions
But I really think it would be simpler to just rely on opcache for these things
It already implements all the tricky stuff, no need to implement it again to bake it into the binary
 
That's stored in the cache?
Okay, that makes sense to break.
Though iirc, the cache slots could be nulled and re-resolved on-demand.
But... shrug
Just getting php units to load persistently without some weird refcount assumption borking is step one. :p
Meanwhile, I think New York is getting to me. I'm looking at a place that's only 2miles away and thinking, "Fuck no. That's in New Jersey."
 
@Sara New York?
Weren't you moving to Europe?
 
Our codebase uses the following syntax to include files.

require_once $_SERVER['DOCUMENT_ROOT'] . '/folder/file.php';
But it makes it super hard to debug code through the CLI. What is a possible solution?
 
@NikiC Plans changed. I'm moving to Midtown instead.
Which, at the very least, is closer to Europe than California. :D
 
3:14 PM
@Sara You still with platform though?
 
@PeeHaa Nah. I told 'em from day one that joining was contingent on moving. The move fell through, so we shook hands and parted ways amicably.
 
kk
 
Nothing personal. Nice bunch of guys.
 
Yeah. Not too fond of that @FlorianMargaine guy though :P
 
Anonymous
beat me to it...
 
3:16 PM
:D
 
found a new job yet ?
 
le me?
 
@JoeWatkins Yeah, joining [REDACTED] which is also in Midtown
I'll have a 3 block commute.
 
[REDACTED] is a bad ass name
 
:D
 
3:20 PM
@Andrea uh, what's so funny about that … some times a bit more memory allocated vs mostly saving real run time, sounds like an appropriate tradeoff?
 
cool
 
@bwoebi maybe, I just found it funny for some reason
 
@Andrea yeah, computers are weird like that … wasting memory for faster access…
 
@Sara Is it not official yet or why are you redacting that?
 
3:26 PM
I'm not sure, because surprises are fun.
 
@Sara you could surprise us … now? :-D
 
Too late, you've expressed curiosity. Now it's a thing.
 
@Sara I'm just being curious as to why you're not saying it, not regarding where you work.
 
I default closed on social engineering details.
But since you asked and AREN'T curious, I can say it's Mongo
 
un-assigned myself from the ArrayAccess numeric strings issue
 
3:31 PM
now, I'm wondering where mongo would've been a surprise…
 
I get that weekly reminder email that it's assigned to me and I never do anything so there's little point in it
It does bother me a bit, but removing that optimisation and writing an RFC… meh.
 
@bwoebi Not expecting to expect it is the surprise.
I JUST BLEW YOUR MIND
@Andrea I kinda like those passive-aggressive emails. It makes me feel loved.
 
Dual boot pc, windows for games and linux for everything else? y/n
 
@Sara “gentle reminder”
 
Wes
@Andrea that breaks my heart
 
3:34 PM
Could do with adding an attachment property. Also form should separate the na – #74660
 
I might still fix it some day if I have nothing better to do
 
@Andrea Exactly. It's like how "Would you mind terribly" actually means, "GET OFF YOUR FUCKING ASS"
 
@Sara :D
 
@Sara you mean, not expecting to expect no actual surprise is the surprise? well done.
 
@bwoebi I am my own inception. OMINOUS-FOGHORN-SOUND
 
3:36 PM
hehe
 
Anonymous
@Sean yes yes yes
 
@Sean No
:P
 
TIL Urban Dictionary does mugs - urbandictionary.store/products/mug?defid=7138912
 
Well I count that as 3 - 1 in favor of yes
 
Anonymous
:)
 
3:49 PM
:P
 
Anonymous
also the 1 is more of a half as you have to consider the drink..
 
Guys, I'm trying to deploy a PHP app on AWS Elastic beanstalk that requires the mailparse extension, anyone with experience?
 
Anonymous
@Mauro best to just ask your question
 
Added the pecl7 install mailparse on a .config fiel on .ebextensions directory. It's failing like this: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/7.0/modules/mailparse.so' - /usr/lib64/php/7.0/modules/mailparse.so: undefined symbol: mbfl_convert_filter_flush in Unknown on line 0
pecl/mailparse is already installed and is the same as the released version 3.0.2
install failed.
I know it's related to the fact that mailparse should be installed after mbstring. I managed to do so manually, by changing the extension load order
But I don't know how to do it through a config file so it happens on every deploy.
 
@Mauro that's not guaranteed to work I think. Try renaming the extensions to be 1_mbstring.so and 2_mailparse.so
 
3:54 PM
And also, for some reason eb seems to not see my new changes to .config files
 
@Sara were you drafting an RFC for that?
 
@Danack Did so manually and worked on the cli. But that is not done automatically when I deploy again. And also, my .config files are kinda being ignored now.
 
@Mauro we're unlikely to be able to figure out why your config changes aren't being applied....
 
@Sara whera re you looking? I'm from NJ and live in Jersey City and can give you a non-biased breakdown of that and of brooklyn, depending on where you're going to work
 
@Danack yeah. This is what I'm doing. I change the file (I actually delete it). git add ., git commit, git push, eb deploy. That should be enough for the config to be applied right? or should I be flushing it somehow?
 
3:58 PM
@Danack And RFC for what?
 
also, welcome @Sara and you'll need to joing the FB group NYC Drinkupathon (need is a strong word)
 
@ircmaxell Midtown. I've already secured a place, so no need at this point. We are planning to move in about a year though, so I may bend your ear for recommendations at that point.
 
@Sara having extensions load order not be arbitrary.
 
nice :), and a 3-block commute is hard to beat
 
@Danack Technically it isn't arbitrary. The problem was with dependencies being resolved early enough.
 
4:01 PM
evenin r11
 
My commute is 2 trains and 2 rivers now, so like 2 miles by air, but 35 minutes to 1.5 hours depending on how bad the subways aren't
 
@ircmaxell Join request sent.
 
and approved
 
Anonymous
@ircmaxell I assume subway is faster than driving?
 
@ircmaxell Can I invite Angela to the group as well?
 
4:02 PM
@Sara most definitely!
 
She's the real drinker between us. I'm just a drunk.
 
hehehe
/me only experienced drinking with her once, and we didn't really drink (I don't count a few cocktails as "drinking")
need to schedule another drinkup sometime soon, it's been a while
 
Def
Next week? Angela is heading back to her mom's after that for a bit. Plus, I don't start work till the 5th
 
next week can work... Let me check with the wife and see what availability is
(also, it's so weird saying that)
 
:D
 
4:12 PM
scheduled for Tuesday of next week
 
i have a question.I have two table program(p_id(pk)AI, program_name and another table graduate_survey(id(pk)AI,total_PO1,total_PO2,session,p_id(fk). In the program table values are already inserted as

p_id Program_name
1 B.tech CSE
2 B.tech IT.
..so on. I select from a drop down list B.tech CSE and then redirect to the survey form. I enter the total_PO1, total_PO2 there and submit it.Now i want to insert in the graduate_survey table where in the fk field the p_id of B.tech CSE should automatically enter so that i can know the survey is done for which program..Is there any query in My
 
@Mauro I don't do private chat rooms unless you're going to be sexting me.
 
@Danack I have that feeling that talking code to you will have the same effect than sexting?
 
@ircmaxell Pointed Angela at the place, she immediately fixated on the $500 tequila flight
 
4:22 PM
HA!
 
Which includes a shot from a $6,000 bottle
 
posted on May 26, 2017 by PeeHaa

Implemented all GET requests

 
oh, if she/you have refined tastes in that regard, I HIGHLY recommend Brandy Library for everything except the effectit will have on your wallet
 
she has refined tastes. I got for the cheap malibu shit
Well, not Malibu...
I have SOME standards
 
hehehe
 
4:24 PM
@ircmaxell what weird language is that?
 
Ruby
 
Wait, is that an optional first parameter???
 
yup
 
@Sara it looks like
 
@ircmaxell wtf
 
4:25 PM
It's a good thing PHP never does that... php.net/pg_query
@ircmaxell Angela says she approves of the venue
 
@Sara /me shutters
 
@Sara uh, ehm, at least it's just an internal func… ehm… EEEEEHM.
 
@bwoebi Remind me to put that on the PHP 8 deprecation list, btw
 
++
 
Everyone know that blacklists are bad
We should deprecate everything and selectively undeprecate some things
10
 
4:30 PM
@NikiC It depends.
@NikiC haha
 
@NikiC OMG, HOW DID I NOT SEE THAT BEFORE
 
@NikiC Replaced with a trim std lib with namespaced functions? :-D
 
@Trowski /me runs. Not going to redo the same mistakes of C++. std namespace. what.
 
@Sara jQuery does that everywhere
 
@Andrea oh?
 
4:33 PM
@bwoebi JS doesn't support it natively but unfortunately, as you know, JS developers
 
@bwoebi Yeah, that's a good point. Ok, not namespace anything in standard, but other extensions.
 
hmm
 
@Trowski that makes some degree of sense. Most of functions are anyway prefix_name (e.g. preg_match) … so prefix\name (aka preg\match looks fine too)
 
every time I think of a way to fix the PHP stdlib, it's a bad idea
scalar methods? no. objects? no. aliases? no. namespaces? no.
 
@Andrea You just have to think about what the common factor between all those things is
 
4:36 PM
^ yeah, function names all having a certain prefix
 
@Andrea Exactly :)
 
^^
 
5:08 PM
evenin
 
@Andrea Yeah, prefixing std is probably a bad idea. But it would be nice to namespace extension functions. i.e.: PHP\PgSql\connect() vs pg_connect().
 
@Trowski prefixing std? not my idea
 
@Andrea No, it's not. I mentioned it before, but on second thought I wouldn't prefix standard functions, only extension functions.
 
Hello guys what are your opnions about using <link href="//fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css">
I meaninsted of https:// replace with // because If I use https:// on my server the font is ot reconized so I have to change the link to //, do you guys reccomend it?
 
What is the exact difference between name and title, I'm creating Forum and each forum has x amount of categories, each category has 'title', but I'm wondering if it's not better to call it 'name' instead of 'title'
 
5:23 PM
@WorkingPig tittle is the <tittle> tag? from the webpage?
 
@OtávioBarreto no I'm talking about larval migration and good name convention, each category has 'Title' row but I think that 'Name' row would be more efficient
 
@Danack I can do that if you help! I don't have a thing for private though. Lets's do it on the open. I need to install mailparse to be included after mbstring. know how?
 
@WorkingPig are you creating it from scratch or using a forum script?
 
such friday. very happy. many beers to be had.
 
if you are creating it from scartch so name it as you want, if not leave as it's because It will be rename and the var returned from database will not work
 
5:31 PM
@OtávioBarreto all from scratch :)
 
@WorkingPig so you can name it as you want
 
!help
 
what is better to use ? <link href="// or <link href="https://
<link href="// works fine when I am using https:// on my server
the other not work
 
wat
 
5:43 PM
for google fonts
 
@PeeHaa // is some kind of shortcut
 
@FélixGagnon-Grenier Yes protocol relative
 
@Sara implode has an optional first parameter, and accepts parameters in either order. Something else to deprecate...
 
Not a shortcut but rather an actual normal thing ;)
 
5:49 PM
oic
I won't feel hipster using it now :)
 
@TheodoreBrown rather burninate the fact that parameters can be swapped
That is wtf level wtf
 
Definitely.
 
yes pls
@PeeHaa on a scale of one to japan, this is wtf level empire of the sun
 
:D
 

« first day (2414 days earlier)      last day (2533 days later) »