« first day (3580 days earlier)      last day (1367 days later) » 
00:00 - 17:0017:00 - 23:00

5:01 PM
today is beta 1
Oh you weren't responding to Derick
my mistake
 
@GabrielCaruso I've sent a mail
 
cmb
@Derick traditionally, we're branching on feature freeze
 
@Derick Also pretty sure 7.4 was branched off early to merge the JIT in something like March of 2019
 
@NikiC Thanks. Let's see what she says, but I'm okay with deleting it, I understand your concerns. Sorry about that, I was just following the docs and her guidance
 
5:08 PM
@cmb Thanks :D
 
I'm trying to find the PHP 7.3 and PHP 7.2 emails ones to have as a reference
 
@StatikStasis Saw that
 
Seems to be an Industrial accident.
 
@Derick possible words
 
5:10 PM
Also the Guardian asked for comment from an Israeli Military spokesman and got "No comment", however it seems it's a cargo ship containing fireworks which detonated
 
seemed to be a warehouse.
 
^
Looks like it to me too by that third video in feed.
God I hope people got out of there before that blast.
 
Welp, then it's a bit like the one which happened in Tianjin a couple of years back
 
Meanwhile, can I release beta1? Or that depends on this branch thing?
Tag*, sorry
 
5:16 PM
@Girgias From another angle looks like it could have been a container/ship behind the warehouse. It is next to the port.
@Girgias Glad it's not a bomb.
 
yeah that would be awkard otherwise
 
would be.....although any explosion is bad, an accidental explosion of fireworks is far less deadly than a proper high explosive.
 
Looks like fireworks are going off in this video: mobile.twitter.com/SVNewsAlerts/status/1290674216623366144
@Danack Just thankful (although maybe it sounds odd) that it is an accident rather than an attack... which could lead to more conflict.
 
cmb
@GabrielCaruso yep, please release it (the branch thingy should be irrelevant)
 
@Girgias Not verified yet but sounds plausible. twitter.com/ragipsoylu/status/1290693115976744961
 
5:27 PM
@Danack "It would be the only declaration or statement that has no ending termination symbol." I agree with @TheodoreBrown here. An attribute is probably more similar to a modifier like protected or final than a declaration, so I'm not sure it's a fair comparison.
 
Well I think at this point better to wait 1 hour or 2 and see what's the situation then
 
Agreed
 
@cmb Thanks! So looks like it was before beta1 indeed, right?
@cmb Okay!
 
cmb
@GabrielCaruso yes, like described in release-process.md :)
 
Btw, do we cut branches for betas?
 
5:34 PM
@IluTov except those are modifiers used on things that are terminated.
 
@Danack Attributes are used on things that are terminated :) Don't see the difference.
You cannot use attributes on their own (except nested attributes I guess)
 
I am a little peeved about the "pulling a fast one" in listed lack of group support, so really not going to get into a discussion about semantics.
 
@cmb We've been wrong about this historically
Doesn't mean that we just have repeat past mistakes every year :)
@GabrielCaruso But in any case, branch or no branch has zero impact on the beta 1 release, you can definitely go ahead with that
 
@NikiC Cutting the release already :)
 
cmb
@GabrielCaruso nope, just use a temporary local branch
 
5:43 PM
Cool
 
cmb
@NikiC ACK, we should be more flexible with the branching.
 
If we do branch, I'm probably going to kill all our CI on master
 
@NikiC aren't you doing that already with trying to make Alpine and PowerPC work? :p
 
And I don't have permissions to delete the created branch btw, so someone else would need to do it
 
@Girgias PowerPC? wat?
that's a dead CPU
(wrong person) makes me think of pipedream of getting a PowerMac 8500/150 and putting a gig of RAM in it, 8x128MB sticks... simply cause it has eight RAM slots
 
Hello! Do you know why this returns an empty array instead of an array with differences?

<?php

$spinResult = [
[1,1,1],
[2,3,4],
[1,1,1]
];

var_dump( array_diff($spinResult[0], $spinResult[1], $spinResult[2]));
 
I suppose it's technically called IBM Power CPU
> Compares array1 against one or more other arrays and returns the values in array1 that are not present in any of the other arrays.
 
@CDoc possibly read the manual?
 
@CDoc As your first and 3rd array are identical there is no difference thus empty array
 
@Tiffany I did but obviously I'm unable to understand how to apply it on more than 2 arrays...
@Girgias I am trying to get differences between three arrays... shouldn't I use array_diff?
 
5:51 PM
Well read the citation I just made from the docs
It is working as intended
 
...I misread... my mistake
 
@CDoc That makes no sense
What is your expected result here
 
@Girgias I just need to know if there is any differences between those three arrays and count() them. That's all...
 
Again what do you mean by difference between 3 arrays, like you have two identical arrays
And even Set Theory ain't helping you here
 
There will be a possibility that these three will be identical. I am trying to find a way of knowing when they aren't..
 
5:54 PM
The first array to array_diff is a reference array
 
.Oh.... so should I check in a loop with a different reference array each time?
 
php.net/manual/en/function.array-intersect.php and check the result is not an empty array
 
You saved the day :) Thanks!
 
No worries :)
 
DOM gymnastics in JS make my brain hurt, I'm not even sure if I'm doing this right
 
6:05 PM
twitter.com/ConflictsW/status/1290670382941429763 that is crazy, that shock wave visible over the water
 
:(, I'm scared to look up the death toll
 
was just looking on google earth, I'm just glad it was in a port and half the blast went out to sea... if something like that happened surrounded on all sides...
 
Welcome to the Netherlands :P
 
O_O
 
6:18 PM
@Girgias Me and you are on the cutting edge of discussing breaking news. =P
 
@StatikStasis Well I get news notification on my phone and I was looking at it when it started :p
 
@Girgias Well... mine came straight from a guy, who knows a guy, who knows a guy, who knows a guy, who buys fish from a guy whose brother-in-law lives in Cyprus, who is the ex-husband of a famous Lebanese politician, whose son works near the docks and notified him right after it happened... so I found out right before your alert went off. =P
Not really... but that was a fun little exercise of connecting the dots while I made it up.
 
I'll let you be the first
 
Oh great, I only get failures on Release builds again
 
6:46 PM
Is there interest in adding clang-format (or something similar) to the CI pipeline? Formatting is kind of a mess in php-src right now. With git-clang-format we could check only touched code (if we want to avoid merge conflicts due to huge changes).
Actually, we could just ignore the merge conflicts and re-run the formatting, that should be fine.
 
7:01 PM
@IluTov That would probably be a good idea
 
7:17 PM
@IluTov I'm not a fan of that
I'm not sure if it's just a matter of config, but found work on clang-formatted projects unpleasant
I do think we should reformat ext/intl though, because the coding style is annoyingly different in there
 
@NikiC I just ran it over a couple of files and I definitely saw a few weird things happening. I'm sure we can disable (or reconfigure) all of those. But it would take some time for sure.
I'm not sure if there are better tools...
 
clang-format is also terrible, and you can't configure much.
and it changes per version
We did it on the mongodb driver... it was not happy going.
 
@Derick Are there alternatives (other than just not formatting your code)?
I don't know any of these tools, but clang-format seems by far the largest.
 
7:39 PM
In JavaScript you can use the || operator to default variable assignments. For example, you could do let foo = bar[5] || false; which will assign whatever is in bar[5] to foo, unless bar[5] is undefined or falsey, in which case it will assign false. Does PHP have a rough equivalent?
 
?:
If dealing with nulls it'd be better to use $foo = $bar[5] || false as it will hide the warning if the array key doesnt exist
 
The goal is to select a value out of an inline array like:
foo = Array(0, 1, 2, ..., 99, 100)[bar] || 84;
It works in JavaScript, but in PHP it is returning 1 in all cases.
 
Because it's doing an Or on it
 
I assume because I am doing a logical or
Yes, and JavaScript works entirely differently in these cases.
 
but possibly exact semantics are different. probably need to check.
in fact should just be not set or null, but false would be used.
 
7:45 PM
Ahh, perfect! I wish JS would implement this operator instead of relying on truthyness to magically make everything work.
 
yes.....do it like PHP.....which always completely sane and never does any magic....
 
Well I know THAT isn't true.
 
cough
 
Need a general opinion. This answer appears to be based on super old PHP (like maybe 5.2 or 5.3). Is there any way to see deleted comments on the PHP manual?
 
btw, congrats @Machavity on your new diamond
 
7:48 PM
@Tiffany Thanks :)
 
@Machavity oh, just noticed that you made it to mod! Well done :)
 
Thanks again :)
Or, to put it a different way, is there any good reason to keep that answer? Can't reproduce what the quoted comment is saying, and the Q itself is confusing (I have no idea why you'd need to escape JSON from json_encode())
 
@salathe Thanks. The full quote more or less confirms he was talking about magic quotes. That answer has to go then
 
@Machavity congrats on becoming a mod. I voted for you. :)
 
@mega6382 :)
 
8:26 PM
Good evening, anyone familiar with Doctrine. What type hint is a many to many property in an entity?
 
@KerrialBeckettNewham Collection|Entity[] if you want PhpStorm to understand it. For Psalm/PHPStan you can use Collection<Entity>.
 
@IluTov for a property?
 
@GabrielCaruso I dropped the branch and moved the commits to master. I don't know what controls who can delete branches in php-src. I thought it was unrestricted
 
@KerrialBeckettNewham Well, I'm talking about the phpDoc annotation. For the actual PHP type hint you can only use Collection.
 
`
/**
* @ORM\ManyToMany(targetEntity=ProjectCheckbox::class, mappedBy="checkboxes")
* @var ProjectCheckbox::class[]|\Doctrine\Common\Collections\Collection
*/
private Collection $projectCheckboxes;
`
 
8:30 PM
@KerrialBeckettNewham Drop the ::class in @var, then it should be fine.
 
says "Multiple definitions exist for class 'Collection' "
 
Did we add ::class to the scalars in 8.0? I can't remember if it was just the $expr::class or not. I'm just thinking of use-cases for attributes which may want to express a type name.
 
@IluTov not sure why this is so hard to find. doctrine don't mention it anywhere in the documentaion
 
8:46 PM
@KerrialBeckettNewham In PhpStorm? That just means there are multiple classes with that namespace in your project.
 
@KerrialBeckettNewham Well, that could be from a stub file. If you control click it you'll see the given definitions.
Either way, doesn't really matter. The two definitions should be the same. Probably safe to ignore. Autocompletion will still work.
 
Could also be from a phar file, I get that when I have a phar containing symfony console (usually composer) in a project which already contains symfony
 
@IluTov yes, you were right. Thank you
 
9:26 PM
So... 2750 tons of ammonium nitrate in Lebanon. That's a big accidental bomb.
 
9:54 PM
@MarkR You mean like 123::class? This is still a parse error in 8.0.
 
@TheodoreBrown Was thinking of int::class, but I looked through and couldn't spot it so must have just been a figment of my imagination
 
@MarkR Technically anything that looks like a class name can be used with ::class, there's not actually any validation of it, though. 3v4l.org/KLqFP
 
Well well well, look at that... here I thought they were special-cased... that might actually come in rather handy.
Thanks!
 
@MarkR Np :)
 
T M
10:26 PM
Hello,
is it he right place to ask about Wordpress and php code related?
 
10:39 PM
@TM don't ask to ask, just ask.
 
00:00 - 17:0017:00 - 23:00

« first day (3580 days earlier)      last day (1367 days later) »