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

2018-07-05 Thread Kalle Sommer Nielsen
Den tor. 5. jul. 2018 kl. 22.51 skrev Kalle Sommer Nielsen : > > Den tor. 5. jul. 2018 kl. 22.46 skrev Nikita Popov : > > Sounds reasonable to me. My only question would be when we would start > > emitting the deprecation notice. I'm not a fan of deprecating things in the > > same release as the

Re: [PHP-DEV] [RFC][Vote] iterable_to_array() and iterable_count()

2018-07-05 Thread Michael Moravec
2018-07-05 22:35 GMT+02:00 Nikita Popov : > I voted against both functions. Jordi already explained why iterable_count() > is questionable, so let me add a comment regarding iterable_to_array(). > > Essentially my gripe is that I'm not convinced of the usefulness of this > function and am

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

2018-07-05 Thread Kalle Sommer Nielsen
Den tor. 5. jul. 2018 kl. 22.46 skrev Nikita Popov : > Sounds reasonable to me. My only question would be when we would start > emitting the deprecation notice. I'm not a fan of deprecating things in the > same release as the alternative is introduced, so I would suggest to add the > new alias

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

2018-07-05 Thread Nikita Popov
On Thu, Jul 5, 2018 at 10:42 PM, Kalle Sommer Nielsen wrote: > Den tor. 5. jul. 2018 kl. 22.22 skrev Stanislav Malyshev < > smalys...@gmail.com>: > > > > Hi! > > > > > After looking into this, I think that FILTER_SANITIZE_MAGIC_QUOTES may > be a > > > legitimate filter, which just has a bad

Re: [PHP-DEV] Re: [RFC][Vote] iterable_to_array() and iterable_count()

2018-07-05 Thread Michael Moravec
2018-07-05 16:43 GMT+02:00 Jordi Boggiano : > Just to explain the No vote for iterable_count, I think we'd rather advocate > people implement Countable in their iterables than to force the consumption > of an iterator just to count it as this can have side-effects and render the > iterator

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

2018-07-05 Thread Kalle Sommer Nielsen
Den tor. 5. jul. 2018 kl. 22.22 skrev Stanislav Malyshev : > > Hi! > > > After looking into this, I think that FILTER_SANITIZE_MAGIC_QUOTES may be a > > legitimate filter, which just has a bad name. Next to other filters that > > perform htmlspecialchars and urlencode, it makes sense that there is

Re: [PHP-DEV] [RFC][Vote] iterable_to_array() and iterable_count()

2018-07-05 Thread Nikita Popov
On Tue, Jul 3, 2018 at 10:48 PM, Michael Moravec wrote: > Hello internals, > > The RFC for adding iterable_to_array() and iterable_count() is now open for > voting: > > https://wiki.php.net/rfc/iterable_to_array-and-iterable_count > > You can vote for each function separately. > > Voting will

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

2018-07-05 Thread Stanislav Malyshev
Hi! > After looking into this, I think that FILTER_SANITIZE_MAGIC_QUOTES may be a > legitimate filter, which just has a bad name. Next to other filters that > perform htmlspecialchars and urlencode, it makes sense that there is also a > filter that performs addslashes. Maybe we should just rename

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

2018-07-05 Thread Nikita Popov
On Tue, Jun 26, 2018 at 10:22 PM, Kalle Sommer Nielsen wrote: > Den søn. 24. jun. 2018 kl. 18.47 skrev Nikita Popov >: > > If you have a minor deprecation in mind, but were too lazy to write an > RFC > > for it, please write me a mail until tomorrow, so that it might be > included > > as part

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread Sara Golemon
On Thu, Jul 5, 2018 at 11:37 AM, Christoph M. Becker wrote: >>> Is there any precendent for postponing feature freeze during the (late) >>> alpha stage? >> >> This was done for the PHP 7.1 release at pretty much the same time (before >> the beta1 release it was decided to go with another alpha

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

2018-07-05 Thread Nikita Popov
On Mon, Jun 25, 2018 at 9:32 PM, Sara Golemon wrote: > On Sun, Jun 24, 2018 at 11:47 AM, Nikita Popov > wrote: > > https://wiki.php.net/rfc/deprecations_php_7_3 > > > > Undocumented mbstring function aliases > > > Yeah, if they're just dumb aliases, then it's a slight gain to narrow > the

Re: [PHP-DEV] [RFC] User-defined object comparison

2018-07-05 Thread Rudolf Theunissen
Fixed! Thanks Christoph, I guess I've been typing "PHP" too much lately. :p On Thu, 5 Jul 2018 at 11:30, Christoph M. Becker wrote: > On 05.07.2018 at 16:27, Rudolf Theunissen wrote: > > > Somewhat related, and in response to Levi's mention of it in this thread, > > I've added a frequently

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread Christoph M. Becker
On 05.07.2018 at 17:25, Nikita Popov wrote: > On Thu, Jul 5, 2018 at 1:25 PM, Christoph M. Becker > wrote: > >> On 05.07.2018 at 13:05, Björn Larsson wrote: >> >>> Den 2018-07-05 kl. 12:17, skrev Nikita Popov: >>> As such, I think that this feature can only go into 7.3 if the release

Re: [PHP-DEV] [RFC] User-defined object comparison

2018-07-05 Thread Christoph M. Becker
On 05.07.2018 at 16:27, Rudolf Theunissen wrote: > Somewhat related, and in response to Levi's mention of it in this thread, > I've added a frequently asked question regarding Python 3's removal of > __cmp__. Please see: >

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread Nikita Popov
On Thu, Jul 5, 2018 at 1:25 PM, Christoph M. Becker wrote: > On 05.07.2018 at 13:05, Björn Larsson wrote: > > > Den 2018-07-05 kl. 12:17, skrev Nikita Popov: > > > >> On Thu, Jul 5, 2018 at 11:09 AM, Björn Larsson > >> > >> wrote: > >> > >>> Den 2018-06-21 kl. 20:41, skrev Sara Golemon: > >>> >

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread shinji igarashi
https://marc.info/?l=php-internals=136093001212358=2 Maybe the opcache case in PHP5.5 is a precendent, I think. 2018年7月5日(木) 20:26 Christoph M. Becker : > On 05.07.2018 at 13:05, Björn Larsson wrote: > > > Den 2018-07-05 kl. 12:17, skrev Nikita Popov: > > > >> On Thu, Jul 5, 2018 at 11:09 AM,

Re: [PHP-DEV] Re: [RFC][Vote] iterable_to_array() and iterable_count()

2018-07-05 Thread Jordi Boggiano
Hey, Just to explain the No vote for iterable_count, I think we'd rather advocate people implement Countable in their iterables than to force the consumption of an iterator just to count it as this can have side-effects and render the iterator unusable. If Countable is implemented then

Re: [PHP-DEV] [RFC] User-defined object comparison

2018-07-05 Thread Rudolf Theunissen
> > We can just define that == calls __equals on the left. That's, for > example, what Python does. This would produce a weird consequence of $a > == $b and $b == $a not being the same, but that's what you get for > overloading operators. That's why overloading operators is not always > the best

[PHP-DEV] PHP version 7.2.8RC1 is available for testing

2018-07-05 Thread Remi Collet
Hi, PHP 7.2.8 RC1 was just released and can be downloaded from: https://downloads.php.net/~remi/ Or using the git tag: php-7.2.8RC1 The Windows binaries are available at: http://windows.php.net/qa/ Please test it carefully, and report any bugs in the bug system. 7.2.8 should be

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread Christoph M. Becker
On 05.07.2018 at 13:05, Björn Larsson wrote: > Den 2018-07-05 kl. 12:17, skrev Nikita Popov: > >> On Thu, Jul 5, 2018 at 11:09 AM, Björn Larsson >> >> wrote: >> >>> Den 2018-06-21 kl. 20:41, skrev Sara Golemon: >>> >>> On Thu, Jun 21, 2018 at 12:57 PM, Dan Ackroyd wrote: > On 21

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread Björn Larsson
Den 2018-07-05 kl. 12:17, skrev Nikita Popov: On Thu, Jul 5, 2018 at 11:09 AM, Björn Larsson wrote: Den 2018-06-21 kl. 20:41, skrev Sara Golemon: On Thu, Jun 21, 2018 at 12:57 PM, Dan Ackroyd wrote: On 21 June 2018 at 17:49, Stanislav Malyshev wrote: I think it's better not to feel

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread Sebastian Bergmann
As such, I think that this feature can only go into 7.3 if the release schedule is adjusted. Extending the schedule by another 2-week alpha cycle would be sufficient to land this proposal in PHP 7.3. +1 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

[PHP-DEV] PHP 7.3.0alpha3

2018-07-05 Thread Christoph M. Becker
Hi all! The PHP team is glad to announce the release of the third PHP 7.3.0 version, PHP 7.3.0 Alpha 3. The rough outline of the PHP 7.3 release cycle is specified in the PHP Wiki: . For source downloads of PHP 7.3.0 Alpha 3 please visit

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread Nikita Popov
On Thu, Jul 5, 2018 at 11:09 AM, Björn Larsson wrote: > Den 2018-06-21 kl. 20:41, skrev Sara Golemon: > > On Thu, Jun 21, 2018 at 12:57 PM, Dan Ackroyd >> wrote: >> >>> On 21 June 2018 at 17:49, Stanislav Malyshev >>> wrote: >>> I think it's better not to feel pressured by the

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread Marco Pivetta
On Thu, Jul 5, 2018 at 11:09 AM, Björn Larsson wrote: > it feels a bit > way off having this to wait for this feature until 2020. > I didn't realise this. Now that I did: AAARGH!

Re: [PHP-DEV] [RFC] Typed Properties

2018-07-05 Thread Björn Larsson
Den 2018-06-21 kl. 20:41, skrev Sara Golemon: On Thu, Jun 21, 2018 at 12:57 PM, Dan Ackroyd wrote: On 21 June 2018 at 17:49, Stanislav Malyshev wrote: I think it's better not to feel pressured by the deadline for 7.3 The deadline isn't a deadline - it's just the current consensus for when