Re: [PHP-DEV] Re: PHP7.1.19RC1 ready for testing

2018-06-21 Thread Alice Wonder
On 06/21/2018 04:02 PM, Dmitri Dmitrienko wrote: PHP 7.1.19RC1 is ready for testing and can be downloaded from: https://downloads.php.net/~ab windows.php.net lists this version as a release https://windows.php.net/download#php-7.1 same goes to 7.2.7 http://php.net/get/php-7.1.19.tar.x

[PHP-DEV] Re: PHP7.1.19RC1 ready for testing

2018-06-21 Thread Dmitri Dmitrienko
PHP 7.1.19RC1 is ready for testing and can be downloaded from: https://downloads.php.net/~ab windows.php.net lists this version as a release https://windows.php.net/download#php-7.1 same goes to 7.2.7 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://w

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

2018-06-21 Thread 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 we'd like to see 7.3 released. > > I

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

2018-06-21 Thread Dan Ackroyd
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 we'd like to see 7.3 released. If people thought this RFC needed more time but would make PHP 7.3 a

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

2018-06-21 Thread Nicolas Grekas
> > if ((new ReflectionReference($array[$key]))->getRefcount() > 2) { /* is > ref */ } else { /* not a ref */ }, for computing the allowed types you’d > intersect the types of the ReflectionProperties returned by > getReferencingProperties(). > Would work also I suppose, sounds good thanks for ca

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

2018-06-21 Thread Bob Weinand
From: nicolas.gre...@gmail.com On Behalf Of Nicolas Grekas Sent: Thursday, June 21, 2018 18:51 To: Bob Weinand Cc: Nikita Popov ; PHP internals Subject: Re: [PHP-DEV] [RFC] Typed Properties something like a ReflectionReference class, which will give you the referencing properties via Reflect

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

2018-06-21 Thread Nicolas Grekas
> something like a ReflectionReference class, which will give you the > referencing properties via ReflectionProperty instances > I may not have the object when walking on data structures, but only the reference (in an array.) It could work this way I suppose: `ReflectionReference::fromArray(array

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

2018-06-21 Thread Stanislav Malyshev
Hi! > Finally, while this RFC currently targets PHP 7.3, this is a large and > complex proposal and we may not be able to meet the deadline, in which case > this feature will go into the next PHP version. I haven't read the RFC yet, so I just want to address this point. I think unless the RFC is

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

2018-06-21 Thread Bob Weinand
> From: Patrick ALLAERT > Sent: Thursday, June 21, 2018 18:25 > To: Nikita Popov > Cc: PHP internals > Subject: Re: [PHP-DEV] [RFC] Typed Properties > > My only concern is about regular variables, not bound to any classes. Isn't > that a little bit inconsistent that classes properties could be t

Re: [PHP-DEV] [RFC][Under Discussion] Add functions array_key_first()and array_key_last()

2018-06-21 Thread David Rodrigues
Brainstorm suggestions: 1. Keys being stored as reference: $valueOutput = array_first(array $array, ?string &$keyOutput = null); 2. Function will returns value or key, by option (similar to array_filter()): ​​ array_first(array $array, int $options = ARRAY_VALUE); ​ ​ array_first(array $array,

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

2018-06-21 Thread Bob Weinand
Hey Larry, > From: Larry Garfield > Sent: Thursday, June 21, 2018 18:17 > To: internals@lists.php.net > Subject: Re: [PHP-DEV] [RFC] Typed Properties > Questions along the way: > > * There was at one point in time a related RFC regarding property accessors > (dedicated getter/setter methods for

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

2018-06-21 Thread Patrick ALLAERT
Le jeu. 21 juin 2018 à 00:00, Nikita Popov a écrit : > Hi internals, > > Bob and I would like to present a new typed properties proposal for your > consideration: > > https://wiki.php.net/rfc/typed_prwould some benefitsoperties_v2 > > > The propo

Re: [PHP-DEV] [RFC][Under Discussion] Add functions array_key_first()and array_key_last()

2018-06-21 Thread Larry Garfield
On Tuesday, June 19, 2018 9:47:01 PM CDT Levi Morrison wrote: > I don't think I'm getting all the mail I am supposed to. I hope this gets > seen. > > I propose 2 functions *only* which I believe covers the use-cases that > all 4 of these do and more, with shorter names, and the ability to > discer

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

2018-06-21 Thread Larry Garfield
On Wednesday, June 20, 2018 4:59:33 PM CDT Nikita Popov wrote: > Hi internals, > > Bob and I would like to present a new typed properties proposal for your > consideration: > > https://wiki.php.net/rfc/typed_properties_v2 > > The proposal allows you to annotate properties with types, which a

[PHP-DEV] PHP 7.2.7 Released

2018-06-21 Thread Sara Golemon
The PHP development team announces the immediate availability of PHP 7.2.7. This is a primarily a bugfix release. PHP 7.2 users are encouraged to upgrade to this version. For source downloads of PHP 7.2.7 please visit our downloads page. Windows binaries can be found on the PHP for Windows site.

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

2018-06-21 Thread Stephen Reay
> On 21 Jun 2018, at 4:59 am, Nikita Popov wrote: > > Hi internals, > > Bob and I would like to present a new typed properties proposal for your > consideration: > >https://wiki.php.net/rfc/typed_properties_v2 > > The proposal allows you to annotate properties with types, which are > enf

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

2018-06-21 Thread Christoph M. Becker
On 21.06.2018 at 16:50, Sara Golemon wrote: > On Thu, Jun 21, 2018 at 9:13 AM, Bob Weinand wrote: > >> I agree that we're pretty late to the party, however I see typed properties >> being >> a pretty central feature to the PHP 7.3 feature set then, just because of >> its size. >> I think it may

Re: [PHP-DEV] Equality and relative ordering of objects

2018-06-21 Thread Dan Ackroyd
On 21 June 2018 at 10:27, Rudi Theunissen wrote: > The Comparable RFC (http://wiki.php.net/rfc/comparable) was written in 2010 > but was not conclusive. I would like to take > on some shared responsibility to push this forward and re-open the > discussion. > > Why is this useful, and why should it

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

2018-06-21 Thread Sara Golemon
On Thu, Jun 21, 2018 at 9:13 AM, Bob Weinand wrote: > I agree that we're pretty late to the party, however I see typed properties > being > a pretty central feature to the PHP 7.3 feature set then, just because of its > size. > I think it may be worth pushing the release of 7.3 a few weeks back

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

2018-06-21 Thread Bob Weinand
> From: nicolas.gre...@gmail.com On Behalf Of > Nicolas Grekas > Sent: Thursday, June 21, 2018 16:08 > To: Nikita Popov > Cc: PHP internals > Subject: Re: [PHP-DEV] [RFC] Typed Properties > > Hi Nikita, Bob, > > I anticipate one case on Symfony VarDumper that will break on typed > references:

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

2018-06-21 Thread Bob Weinand
Hey Sara, > From: p...@golemon.com On Behalf Of Sara Golemon > Sent: Thursday, June 21, 2018 15:43 > To: Nikita Popov > Cc: PHP internals > Subject: Re: [PHP-DEV] [RFC] Typed Properties > > On Wed, Jun 20, 2018 at 4:59 PM, Nikita Popov > wrote: > > Finally, while this RFC currently targets PH

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

2018-06-21 Thread Nicolas Grekas
Hi Nikita, Bob, https://wiki.php.net/rfc/typed_properties_v2 > This is really well thought and written, sounds really primising. I agree that "References without intrinsic type" look the best. I anticipate one case on Symfony VarDumper that will break on typed references: the only way to de

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

2018-06-21 Thread Sara Golemon
On Wed, Jun 20, 2018 at 4:59 PM, Nikita Popov wrote: > Bob and I would like to present a new typed properties proposal for your > consideration: > > https://wiki.php.net/rfc/typed_properties_v2 > At a glance, yes please. Will dig in deeper when I'm not busy moving. > Finally, while this RFC

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

2018-06-21 Thread Gabriel Caruso
Nikita, Bob I'd love to thank you and everyone involved on this one. Types properties on PHP is something that we tried before, but due to a number of issues, we didn't make it. Unfortunately, I don't have the knowledge to help in the implementation, but I'd like to drop some comments about the sy

Re: [PHP-DEV] Equality and relative ordering of objects

2018-06-21 Thread Michał Brzuchalski
2018-06-21 11:27 GMT+02:00 Rudi Theunissen : > The Comparable RFC (http://wiki.php.net/rfc/comparable) was written in > 2010 > and > revised in 2015 by Adam Harvey, but was not conclusive. I would like to > take > on some shared responsibility to push this forward and re-open the > discussion. > >

[PHP-DEV] Re: Equality and relative ordering of objects

2018-06-21 Thread Christoph M. Becker
On 21.06.2018 at 11:27, Rudi Theunissen wrote: > The Comparable RFC (http://wiki.php.net/rfc/comparable) was written in 2010 > and > revised in 2015 by Adam Harvey, but was not conclusive. I would like to take > on some shared responsibility to push this forward and re-open the > discussion. Than

[PHP-DEV] PHP 7.3.0alpha2

2018-06-21 Thread Christoph M. Becker
Hi all! The PHP team is glad to announce the release of the second PHP 7.3.0 version, PHP 7.3.0 Alpha 2. 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 2 please visit

[PHP-DEV] Equality and relative ordering of objects

2018-06-21 Thread Rudi Theunissen
The Comparable RFC (http://wiki.php.net/rfc/comparable) was written in 2010 and revised in 2015 by Adam Harvey, but was not conclusive. I would like to take on some shared responsibility to push this forward and re-open the discussion. Why is this useful, and why should it be added to PHP? 1. Th

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

2018-06-21 Thread Marco Pivetta
Hi Bob, On Thu, Jun 21, 2018 at 1:42 AM, Bob Weinand wrote: > __get() is a very normal function - the special semantics are generally > only applied if called for overloaded properties. So obviously, there is no > check applied if you call it directly. > Thanks! The dev branch is stable for te