Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Sergey Panteleev
Hey all, I'd like to add my 2c: I agree that php.net is not the right place to express our personal citizenship. It's better to use Twitter, Facebook, or another social network for these purposes. If you believe that the PHP community is obliged to show solidarity on the  php.net, and not

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Andreas Heigl
Hey Paul, All. On 03.03.22 00:45, Paul Dragoonis wrote: On Wed, Mar 2, 2022 at 11:11 PM Paul Crovella wrote: On Wed, Mar 2, 2022 at 1:08 PM Stanislav Malyshev wrote: That said, if somebody were to design a logo version with Ukraine flag In case anyone has use for it:

Re: [PHP-DEV] Adding `class UnsupportedOperationException extends RuntimeException` to php?

2022-03-02 Thread Jordan LeDoux
On Wed, Feb 23, 2022 at 5:42 AM Tim Düsterhus, WoltLab GmbH < duester...@woltlab.com> wrote: > Hi Tyson > > On 2/13/22 16:50, tyson andre wrote: > > Currently, there doesn't seem to be an exact fit for indicating that a > method isn't supported on an object by design (and will throw >

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Paul Dragoonis
On Wed, Mar 2, 2022 at 11:11 PM Paul Crovella wrote: > On Wed, Mar 2, 2022 at 1:08 PM Stanislav Malyshev > wrote: > > > > That said, if somebody were to design a logo version with Ukraine flag > > > > In case anyone has use for it: https://svgshare.com/i/epJ.svg > > Colors are #0057b7 and

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Paul Crovella
On Wed, Mar 2, 2022 at 1:08 PM Stanislav Malyshev wrote: > > That said, if somebody were to design a logo version with Ukraine flag > In case anyone has use for it: https://svgshare.com/i/epJ.svg Colors are #0057b7 and #ffd700, from https://en.wikipedia.org/wiki/Flag_of_Ukraine#Design, with a

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Alexandru Pătrănescu
On Wed, Mar 2, 2022 at 4:17 PM Larry Garfield wrote: > On Wed, Mar 2, 2022, at 8:00 AM, Craig Francis wrote: > > On Wed, 2 Mar 2022 at 12:26, Dik Takken wrote: > > > >> So, to get this crystal clear, this is my understanding of what you are > >> proposing for passing null to a non-nullable

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Stanislav Malyshev
Hello all, I do not know if anybody here knows much about me personally, but I was born in Ukraine, lived there for all my youth and my relatives and friends are still there. You can imagine my feelings about this horrible attack on Ukraine that is going on right now. I am sincerely and

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Andreas Hennings
On Wed, 2 Mar 2022 at 18:07, Chase Peeler wrote: > > On Wed, Mar 2, 2022 at 12:03 PM Alain D D Williams > wrote: > > > On Wed, Mar 02, 2022 at 05:43:25PM +0100, Victor Bolshov wrote: > > > Just one more thing: as of yesterday, in response to western sanctions > > and > > > supplies of letal arms

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Chase Peeler
On Wed, Mar 2, 2022 at 12:03 PM Alain D D Williams wrote: > On Wed, Mar 02, 2022 at 05:43:25PM +0100, Victor Bolshov wrote: > > Just one more thing: as of yesterday, in response to western sanctions > and > > supplies of letal arms to Ukraine from EU countries, Putin has ordered > > Russian

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Kalle Sommer Nielsen
Den ons. 2. mar. 2022 kl. 18.33 skrev Victor Bolshov : > This is going to cause debate, I was sure about it. And if the community > agrees at least to state "NO WAR", that is already something. PHP is not a media, it is an open source project. While our individual contributors can choose to

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Alain D D Williams
On Wed, Mar 02, 2022 at 05:43:25PM +0100, Victor Bolshov wrote: > Just one more thing: as of yesterday, in response to western sanctions and > supplies of letal arms to Ukraine from EU countries, Putin has ordered > Russian nuclear forces to switch to a special alert regime, which means they >

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Victor Bolshov
Just one more thing: as of yesterday, in response to western sanctions and supplies of letal arms to Ukraine from EU countries, Putin has ordered Russian nuclear forces to switch to a special alert regime, which means they will be ready to strike at any moment. Anything that can help stop this

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Victor Bolshov
This is going to cause debate, I was sure about it. And if the community agrees at least to state "NO WAR", that is already something. To provide more context on Putin's propaganda: he has been consistently putting more and more restrictions on nearly each and every independent media. I can

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Craig Francis
On Wed, 2 Mar 2022 at 15:21, Andreas Leathley wrote: > This is the behavior for explicit type casting (strval) and the implicit > casting when using a variable in a string context, like echo or print. > But that's what the RFC is about. Although you do raise a good point, why does

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Craig Francis
On Wed, 2 Mar 2022 at 14:58, Andreas Leathley wrote: > Comparisons with == are quite worthless Yep, but I'm focusing on how PHP works today, and while I welcome and encourage improvements to the language, it has to be done gracefully... forcing strict type checking on everyone (even if it's

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Andreas Leathley
On 02.03.22 16:00, Craig Francis wrote: I'll note that converting from NULL is used all the time, and is well defined: https://www.php.net/manual/en/language.types.string.php "null is always converted to an empty string." https://www.php.net/manual/en/language.types.integer.php "null is

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Kalle Sommer Nielsen
Den ons. 2. mar. 2022 kl. 14.51 skrev Marco Pivetta : > Please GTFO: we don't need more of Putin's propaganda over here, as they're > busy enough with butchering civilians over there. I heavily agree with this matter, the PHP project should remain neutral. Seeing this thread already makes me

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread naitsirch
Am 02-Mar-2022 16:02:41 +0100 schrieb der...@derickrethans.nl: > On Wed, 2 Mar 2022, naitsi...@e.mail.de wrote: > > > I only wanted to make clear, that if we start to support Ukraine as > > the victimized party in this conflict we have to do that in other > > conflicts, too. > > This is a

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Derick Rethans
On Wed, 2 Mar 2022, naitsi...@e.mail.de wrote: > I only wanted to make clear, that if we start to support Ukraine as > the victimized party in this conflict we have to do that in other > conflicts, too. This is a logical fallacy called whataboutery, and an invention of the Soviet Union

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread naitsirch
Am 02-Mar-2022 15:19:54 +0100 schrieb andr...@heigl.org: > Hey. > > On 02.03.22 14:56, naitsi...@e.mail.de wrote: > > > > > > Am 02-Mar-2022 13:51:07 +0100 schrieb ocram...@gmail.com: > >> > >> Hey Christian, > >> > >> On Wed, Mar 2, 2022 at 1:41 PM wrote: > >>> this is exactly the problem.

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Craig Francis
On 2 Mar 2022, at 14:39, Andreas Leathley wrote: > Type coercion already often does not work - giving the string "s" to an > integer-typed argument will lead to a TypeError, it will not be coerced. > I would prefer less coercions rather than more. Hi Andreas, I'll note that converting from

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Andreas Leathley
On 02.03.22 15:27, Craig Francis wrote: On Wed, 2 Mar 2022 at 14:17, Larry Garfield wrote: Null is not an empty string. Null is not a string. Null is not 0. Null is not an integer. So what should this do? $name = ($_POST['name'] ?? NULL); var_dump($name == ''); Is that now going to be

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Andreas Leathley
On 02.03.22 15:00, Craig Francis wrote: On Wed, 2 Mar 2022 at 12:26, Dik Takken wrote: So, to get this crystal clear, this is my understanding of what you are proposing for passing null to a non-nullable function parameter (hopefully my ASCII art will come through ok): which |

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Craig Francis
On Wed, 2 Mar 2022 at 14:17, Larry Garfield wrote: > Null is not an empty string. Null is not a string. Null is not 0. Null > is not an integer. > So what should this do? $name = ($_POST['name'] ?? NULL); var_dump($name == ''); Is that now going to be false?

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Andreas Heigl
Hey. On 02.03.22 14:56, naitsi...@e.mail.de wrote: Am 02-Mar-2022 13:51:07 +0100 schrieb ocram...@gmail.com: Hey Christian, On Wed, Mar 2, 2022 at 1:41 PM wrote: this is exactly the problem. Russia did not just invaded Ukrainia out of nowhere. The story started in 2014 with the illegal

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Chase Peeler
On Wed, Mar 2, 2022 at 8:34 AM Aaron Junker wrote: > Hi all > > As I see this there is strong agreement against war, but not for taking a > side on a conflict. > > So then why not showing a banner or something against war. No war or side > in particular just for humanity and peace. > > I think

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Larry Garfield
On Wed, Mar 2, 2022, at 8:00 AM, Craig Francis wrote: > On Wed, 2 Mar 2022 at 12:26, Dik Takken wrote: > >> So, to get this crystal clear, this is my understanding of what you are >> proposing for passing null to a non-nullable function parameter >> (hopefully my ASCII art will come through ok):

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Michał Marcin Brzuchalski
śr., 2 mar 2022 o 14:56 napisał(a): > > > Am 02-Mar-2022 13:51:07 +0100 schrieb ocram...@gmail.com: > > > > Hey Christian, > > > > On Wed, Mar 2, 2022 at 1:41 PM wrote: > > > this is exactly the problem. Russia did not just invaded Ukrainia out > of nowhere. The story started in 2014 with the

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Craig Francis
On Wed, 2 Mar 2022 at 12:26, Dik Takken wrote: > So, to get this crystal clear, this is my understanding of what you are > proposing for passing null to a non-nullable function parameter > (hopefully my ASCII art will come through ok): > > > which | strict_types | PHP 8.0| PHP 8.1|

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Andreas Heigl
Hey Aaron. On 02.03.22 14:34, Aaron Junker wrote: Hi all As I see this there is strong agreement against war, but not for taking a side on a conflict. So then why not showing a banner or something against war. No war or side in particular just for humanity and peace. I think that's

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread naitsirch
Am 02-Mar-2022 13:51:07 +0100 schrieb ocram...@gmail.com: > > Hey Christian, > > On Wed, Mar 2, 2022 at 1:41 PM wrote: > > this is exactly the problem. Russia did not just invaded Ukrainia out of > > nowhere. The story started in 2014 with the illegal coup d'etat against > > Viktor

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Michał Marcin Brzuchalski
śr., 2 mar 2022 o 14:34 Aaron Junker napisał(a): > Hi all > > As I see this there is strong agreement against war, but not for taking a > side on a conflict. > > So then why not showing a banner or something against war. No war or side > in particular just for humanity and peace. > > I think

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Michał Marcin Brzuchalski
śr., 2 mar 2022 o 14:00 Andreas Heigl napisał(a): > Hey All > > On 02.03.22 13:50, Marco Pivetta wrote: > > Hey Christian, > > > > On Wed, Mar 2, 2022 at 1:41 PM wrote: > > > >> this is exactly the problem. Russia did not just invaded Ukrainia out of > >> nowhere. The story started in 2014 with

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Aaron Junker
Hi all As I see this there is strong agreement against war, but not for taking a side on a conflict. So then why not showing a banner or something against war. No war or side in particular just for humanity and peace. I think that's something everyone could agree with. Let me know what you

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Andreas Heigl
Hey All On 02.03.22 13:50, Marco Pivetta wrote: Hey Christian, On Wed, Mar 2, 2022 at 1:41 PM wrote: this is exactly the problem. Russia did not just invaded Ukrainia out of nowhere. The story started in 2014 with the illegal coup d'etat against Viktor Yanukovych and its acceptance by the

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Michał Marcin Brzuchalski
śr., 2 mar 2022 o 13:51 Marco Pivetta napisał(a): > Hey Christian, > > On Wed, Mar 2, 2022 at 1:41 PM wrote: > > > this is exactly the problem. Russia did not just invaded Ukrainia out of > > nowhere. The story started in 2014 with the illegal coup d'etat against > > Viktor Yanukovych and its

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Dan Ackroyd
Hi Victor, I have strong feelings about the war and that people should be taking whatever personal action they can (check my pinned tweet, @MrDanack), but: i) PHP Internals is for discussion of PHP internals. ii) We have contributors on both sides of the conflict. There are also many other

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Marco Pivetta
Hey Christian, On Wed, Mar 2, 2022 at 1:41 PM wrote: > this is exactly the problem. Russia did not just invaded Ukrainia out of > nowhere. The story started in 2014 with the illegal coup d'etat against > Viktor Yanukovych and its acceptance by the western countries. Or even > earlier, with the

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread naitsirch
> > Von: naitsi...@e.mail.de > Gesendet: Mittwoch, 2. März 2022, 12:16 > An: andr...@heigl.org; internals@lists.php.net; crocodil...@gmail.com > Betreff: Re: [PHP-DEV] PHP Community to support Ukraine and help to stop > Russian agression > > Am 02-Mar-2022

Re: [PHP-DEV] Allowing NULL for some internal functions

2022-03-02 Thread Dik Takken
On 01-03-2022 19:10, Craig Francis wrote: I'm pretty confident the best solution is to keep all parameter types the same (I could argue that some parameters could do with a "cannot be empty" exception, to reject NULL and an Empty String, but that would be a different RFC)... and anyone using

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Aaron Junker
Hi Christian > I'd support this, if there will be added flags of all countries where armed > conflicts are going on. There's a list on Wikipedia[1] were those are shown. > Otherwise the people in those areas are discriminated. You have a valid point, however it's not always clear which side is

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread naitsirch
Am 02-Mar-2022 11:39:01 +0100 schrieb andr...@heigl.org: > Hey All > > On 02.03.22 11:16, Aaron Junker wrote: > > I'm not an internal, but I support this idea. > > > > From: Lynn > > Sent: Wednesday, March 2, 2022 10:36:32 AM > > To: Victor Bolshov > > Cc: PHP

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Andreas Heigl
Hey All On 02.03.22 11:16, Aaron Junker wrote: I'm not an internal, but I support this idea. From: Lynn Sent: Wednesday, March 2, 2022 10:36:32 AM To: Victor Bolshov Cc: PHP internals Subject: Re: [PHP-DEV] PHP Community to support Ukraine and help to stop

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Aaron Junker
I'm not an internal, but I support this idea. From: Lynn Sent: Wednesday, March 2, 2022 10:36:32 AM To: Victor Bolshov Cc: PHP internals Subject: Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression On Wed, Mar 2, 2022 at 10:31 AM

Re: [PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Lynn
On Wed, Mar 2, 2022 at 10:31 AM Victor Bolshov wrote: > Hello internals. > > In these dark days for humanity, we as people of civilization, people > of sanity, kind and caring people with children and families - we have > to speak up, loud and clear, in support for Ukraine. To stop Russian >

[PHP-DEV] PHP Community to support Ukraine and help to stop Russian agression

2022-03-02 Thread Victor Bolshov
Hello internals. In these dark days for humanity, we as people of civilization, people of sanity, kind and caring people with children and families - we have to speak up, loud and clear, in support for Ukraine. To stop Russian aggression. I suggest to add Ukranian flag and a supportive