Re: [PHP-DEV] [VOTE] Saner string to number comparison

2020-07-17 Thread Nikita Popov
On Fri, Jul 17, 2020 at 6:29 PM Benjamin Morel wrote: > Thanks for this RFC, Nikita! This is definitely a step in the right > direction, and I can only hope it will pass. > > One question: > > > (...) by using a number comparison only if the string is actually > numeric. *Otherwise the number is

Re: [PHP-DEV] [VOTE] Saner string to number comparison

2020-07-17 Thread Benjamin Morel
Thanks for this RFC, Nikita! This is definitely a step in the right direction, and I can only hope it will pass. One question: > (...) by using a number comparison only if the string is actually numeric. > Otherwise the number is converted into a string, and a string comparison is >

Re: [PHP-DEV] [RFC] \PHP namespace usage heuristics

2020-07-17 Thread Larry Garfield
On Fri, Jul 17, 2020, at 7:20 AM, Mark Randall wrote: > On 17/07/2020 09:23, Lester Caine wrote: > > So does that also apply to \Ext? Currently the selection of extensions > > is flexible and most distributions allow the easy repackaging of just > > what is available. Creating a 'core' set off

Re: [PHP-DEV] [RFC] \PHP namespace usage heuristics

2020-07-17 Thread Mark Randall
On 17/07/2020 09:23, Lester Caine wrote: So does that also apply to \Ext? Currently the selection of extensions is flexible and most distributions allow the easy repackaging of just what is available. Creating a 'core' set off extensions under \PHP is essentially saying 'you will make these

Re: [PHP-DEV] [RFC] Deprecations for PHP 8.0

2020-07-17 Thread Nikita Popov
On Fri, Jun 5, 2020 at 11:14 AM Nicolas Grekas wrote: > > It's that time of year again. Feature freeze is looming, so it's time to >> talk about deprecations! >> >> https://wiki.php.net/rfc/deprecations_php_8_0 >> > > Thanks for the RFC. > Would it make sense for you to postpone this for 8.1? >

[PHP-DEV] [VOTE] Treat namespaced names as single token

2020-07-17 Thread Nikita Popov
Hi internals, I've opened voting on https://wiki.php.net/rfc/namespaced_names_as_token. The vote closes 2020-07-31. Regards, Nikita

[PHP-DEV] [VOTE] Saner string to number comparison

2020-07-17 Thread Nikita Popov
Hi internals, I've opened the vote on https://wiki.php.net/rfc/string_to_number_comparison. Voting closes 2020-07-31. Regards, Nikita

Re: [PHP-DEV] [RFC] [VOTE] Saner numeric strings

2020-07-17 Thread Bob Weinand
> Am 17.07.2020 um 11:30 schrieb Nikita Popov : > > On Fri, Jul 17, 2020 at 11:27 AM Bob Weinand > wrote: > Hey George, > > while I agree with your RFC in general, changing the autocast behavior of the > empty string is not acceptable for me. > > Empty strings

Re: [PHP-DEV] [RFC] [VOTE] Saner numeric strings

2020-07-17 Thread Nikita Popov
On Fri, Jul 17, 2020 at 11:27 AM Bob Weinand wrote: > Hey George, > > while I agree with your RFC in general, changing the autocast behavior of > the empty string is not acceptable for me. > > Empty strings often are the output of non-existing things, like default > value of a text field in a

Re: [PHP-DEV] [RFC] [VOTE] Saner numeric strings

2020-07-17 Thread Bob Weinand
Hey George, while I agree with your RFC in general, changing the autocast behavior of the empty string is not acceptable for me. Empty strings often are the output of non-existing things, like default value of a text field in a DB, when reading files not filled with inputs yet etc. It should

Re: [PHP-DEV] [VOTE] nullsafe operator RFC

2020-07-17 Thread Dan Ackroyd
On Fri, 17 Jul 2020 at 10:05, Ilija Tovilo wrote: > > Hi internals > > I started the vote on the nullsafe operator RFC. > https://wiki.php.net/rfc/nullsafe_operator > > The vote closes on 2020-07-31. I'm voting yes. >From the discussions I've seen, there are two overlapping reasons people have

[PHP-DEV] [VOTE] nullsafe operator RFC

2020-07-17 Thread Ilija Tovilo
Hi internals I started the vote on the nullsafe operator RFC. https://wiki.php.net/rfc/nullsafe_operator The vote closes on 2020-07-31. Ilija -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php

Re: [PHP-DEV] [RFC] \PHP namespace usage heuristics

2020-07-17 Thread Rowan Tommins
On Fri, 17 Jul 2020 at 04:50, Levi Morrison via internals < internals@lists.php.net> wrote: > This is not quite the same. I said it moves from _userland_ aka PHP > code, to an _extension_ aka C code. I oppose `Ext` in both case. > Hi Levi, Given this, I presume you also oppose `PHP\` for those

Re: [PHP-DEV] [RFC] \PHP namespace usage heuristics

2020-07-17 Thread Lester Caine
On 16/07/2020 22:42, Larry Garfield wrote: After some discussion, the namespacing proposal has been again updated. Two major changes: 1) Only engine code goes in \PHP. There's a separate \Ext namespace for extensions, whether bundled or PECL. From RFC ... " This RFC does NOT propose