[PHP-DEV] PHP 5.6.23 RC1 is available for testing

2016-06-10 Thread Ferenc Kovacs
Hello everyone, PHP 5.6.23 RC1 was just released and can be downloaded from: http://downloads.php.net/~tyrael/ The Windows binaries are available at http://windows.php.net/qa/ This release contains a number of bugfixes. For the list of bugfixes that you can target in your testing, please refer

[PHP-DEV] [VOTE] Add curl_multi_errno(), curl_share_errno() and curl_share_strerror()

2016-06-10 Thread Pierrick Charron
Hi Internals, Since I got no feedback on the RFC about the addition of those 3 functions and that this is not a big change I decided to open the vote. https://wiki.php.net/rfc/new-curl-error-functions Feedback and questions are as always welcome !

[PHP-DEV] Is this thing on?

2016-06-10 Thread Lester Caine
Not seem any traffic for a couple of days? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow

[PHP-DEV] BAD Benchmark Results for PHP Master 2016-06-09

2016-06-10 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-06-09 06:28:31+03:00 commit: 296aa36 previous commit:10f0562 revision date: 2016-06-08 18:37:32+01:00 environment:Haswell-EP cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB

Re: [PHP-DEV] [RFC] [VOTE] Replace "Missing argument" warning with"Too few arguments" exception

2016-06-10 Thread Rowan Collins
Apologies if this ends up as a duplicate. The list server seems to be, or have been, down, so trying to re-send and see what happens. On 06/06/2016 14:38, Christoph Becker wrote: In my opinion it would be good to more explicitly clarify what constitutes an unacceptable BC break. Bug fixes are

[PHP-DEV] Test

2016-06-10 Thread Sherif Ramadan
Just testing that the mailing list is still working. Please ignore.

[PHP-DEV] PHP 7.0.8 RC1 is available for testing

2016-06-10 Thread Anatol Belski
Hi, PHP 7.0.8 RC1 was just released and can be downloaded from: https://downloads.php.net/~ab/ The Windows binaries are available at http://windows.php.net/qa/ This release contains a number of bugfixes. For the list of bugfixes that you can target in your testing, please refer to the

Re: [PHP-DEV] Is this thing on?

2016-06-10 Thread Rowan Collins
On 09/06/2016 14:08, Lester Caine wrote: Not seem any traffic for a couple of days? It was definitely down for a while - I eventually got a bounce for one message - but seems to be back up now. I'm guessing a few out-of-sequence messages will find their way in, but anything sent between Mon

[PHP-DEV] [RFC][Vote] Typed Properties

2016-06-10 Thread Joe Watkins
Afternoon internals, The vote for typed properties has been restarted. Please take part: https://wiki.php.net/rfc/typed-properties Cheers Joe

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

2016-06-10 Thread Dmitry Stogov
Hi, I hardly worked on implementation of this patch for a week, but I still don't like it. It makes 15% slowdown on each property update in existing PHP code (without types), and I don't see a way to improve this. Update of typed properties is going to be even more expensive. Benchmark resul

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

2016-06-10 Thread Marco Pivetta
As already mentioned on twitter, I voted "no" on this RFC as it currently stands. I might reconsider if following points are addressed: 1. __get semantics are not changed: let __get behave like it usually does, and let the user define a type hint on __get, should any be applicable. Basically: cl

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

2016-06-10 Thread Niklas Keller
2016-06-10 14:39 GMT+02:00 Marco Pivetta : > As already mentioned on twitter, I voted "no" on this RFC as it currently > stands. I might reconsider if following points are addressed: > > 1. __get semantics are not changed: let __get behave like it usually does, > and let the user define a type hi

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

2016-06-10 Thread Marco Pivetta
Top-posting, since I'm taking off now. >From outside the class, properties are not visible at all, so their types are un-important from outer scopes. echo $foo->bar; is not the same in instance method body or outside of the class. On Jun 10, 2016 2:55 PM, "Niklas Keller" wrote: > 2016-06-10 14:

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

2016-06-10 Thread Niklas Keller
> > Top-posting, since I'm taking off now. > > From outside the class, properties are not visible at all, so their types > are un-important from outer scopes. > > echo $foo->bar; is not the same in instance method body or outside of the > class. > >From outside it works just fine and doesn't throw:

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

2016-06-10 Thread Bob Weinand
> Am 10.6.2016 um 15:34 schrieb Niklas Keller : > >> >> Top-posting, since I'm taking off now. >> >> From outside the class, properties are not visible at all, so their types >> are un-important from outer scopes. >> >> echo $foo->bar; is not the same in instance method body or outside of the

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

2016-06-10 Thread Niklas Keller
2016-06-10 15:50 GMT+02:00 Bob Weinand : > > Am 10.6.2016 um 15:34 schrieb Niklas Keller : > > > Top-posting, since I'm taking off now. > > From outside the class, properties are not visible at all, so their types > are un-important from outer scopes. > > echo $foo->bar; is not the same in instanc

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

2016-06-10 Thread Bob Weinand
> Am 10.06.2016 um 16:00 schrieb Niklas Keller : > > 2016-06-10 15:50 GMT+02:00 Bob Weinand >: > >> Am 10.6.2016 um 15:34 schrieb Niklas Keller > >: >> >>> >>> Top-posting, since I'm taking off now. >>> >>> From outside the class, properti

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

2016-06-10 Thread Niklas Keller
2016-06-10 16:12 GMT+02:00 Bob Weinand : > In this case a definite -1 on the RFC from me. I don't want "surprises" > regarding the type if a property is declared to return a certain type. > Where's the surprise?

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

2016-06-10 Thread Bob Weinand
> Am 10.06.2016 um 16:16 schrieb Niklas Keller : > > > 2016-06-10 16:12 GMT+02:00 Bob Weinand >: > In this case a definite -1 on the RFC from me. I don't want "surprises" > regarding the type if a property is declared to return a certain type. > > Where's the surpr

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

2016-06-10 Thread Levi Morrison
On Fri, Jun 10, 2016 at 6:37 AM, Dmitry Stogov wrote: > Hi, > > > I hardly worked on implementation of this patch for a week, but I still don't > like it. > > It makes 15% slowdown on each property update in existing PHP code (without > types), and I don't see a way to improve this. > > Update o

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

2016-06-10 Thread Bob Weinand
> Am 10.06.2016 um 16:24 schrieb Levi Morrison : > > On Fri, Jun 10, 2016 at 6:37 AM, Dmitry Stogov wrote: >> Hi, >> >> >> I hardly worked on implementation of this patch for a week, but I still >> don't like it. >> >> It makes 15% slowdown on each property update in existing PHP code (witho

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

2016-06-10 Thread Joe Watkins
That's a bug ... that should throw ... Cheers Joe On Fri, Jun 10, 2016 at 3:12 PM, Bob Weinand wrote: > > Am 10.06.2016 um 16:00 schrieb Niklas Keller : > > 2016-06-10 15:50 GMT+02:00 Bob Weinand : > >> >> Am 10.6.2016 um 15:34 schrieb Niklas Keller : >> >> >> Top-posting, since I'm taking off

[PHP-DEV] ReflectionType improvements

2016-06-10 Thread Levi Morrison
Now that the mailing list is working again I'd like to propose some improvements to the ReflectionType API. We added ReflectionType as part of the Return Types RFC. At that time the API was intentionally kept minimal to not step on the toes of potential future features (such as enum, union and inte

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

2016-06-10 Thread Joe Watkins
Woops, no it isn't ... the property is private ... Cheers Joe On Fri, Jun 10, 2016 at 3:42 PM, Joe Watkins wrote: > That's a bug ... that should throw ... > > Cheers > Joe > > On Fri, Jun 10, 2016 at 3:12 PM, Bob Weinand wrote: > >> >> Am 10.06.2016 um 16:00 schrieb Niklas Keller : >> >> 2016-

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

2016-06-10 Thread Dmitry Stogov
On 06/10/2016 05:24 PM, Levi Morrison wrote: On Fri, Jun 10, 2016 at 6:37 AM, Dmitry Stogov wrote: Hi, I hardly worked on implementation of this patch for a week, but I still don't like it. It makes 15% slowdown on each property update in existing PHP code (without types), and I don't se

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

2016-06-10 Thread Dmitry Stogov
On 06/10/2016 05:24 PM, Levi Morrison wrote: On Fri, Jun 10, 2016 at 6:37 AM, Dmitry Stogov wrote: Hi, I hardly worked on implementation of this patch for a week, but I still don't like it. It makes 15% slowdown on each property update in existing PHP code (withou

Re: [PHP-DEV] ReflectionType improvements

2016-06-10 Thread Joe Watkins
Afternoon Levi, Since communication broke down over the last few days, I'm happy for you to move forward with the discussion period. Voting will have to be abbreviated to make everything fit. Cheers Joe On Fri, Jun 10, 2016 at 3:50 PM, Levi Morrison wrote: > Now that the mailing list

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

2016-06-10 Thread Dmitry Stogov
On 06/10/2016 05:31 PM, Bob Weinand wrote: Am 10.06.2016 um 16:24 schrieb Levi Morrison : On Fri, Jun 10, 2016 at 6:37 AM, Dmitry Stogov wrote: Hi, I hardly worked on implementation of this patch for a week, but I still don't like it. It makes 15% slowdown on each property update in exis

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

2016-06-10 Thread Larry Garfield
On 06/10/2016 10:01 AM, Dmitry Stogov wrote: To clarify though, didn't Wordpress and Mediawiki see only a 0.1% slowdown? In my opinion that is definitely a tolerable performance hit for such a feature. I don't see any big value in this feature. Most framework access their properties through ge

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

2016-06-10 Thread Rowan Collins
On 10/06/2016 17:16, Larry Garfield wrote: That seems like a worthwhile trade-off for a <1% performance difference in a real-world application. The problem is that the performance hit is felt even for code that doesn't "opt in" to this feature. For an application that makes no use of the feat

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

2016-06-10 Thread Larry Garfield
On 06/10/2016 11:57 AM, Rowan Collins wrote: On 10/06/2016 17:16, Larry Garfield wrote: That seems like a worthwhile trade-off for a <1% performance difference in a real-world application. The problem is that the performance hit is felt even for code that doesn't "opt in" to this feature. For

Re: [PHP-DEV] Test

2016-06-10 Thread Lester Caine
On 10/06/16 09:47, Sherif Ramadan wrote: > Just testing that the mailing list is still working. Please ignore. Looks like it started working sometime yesterday. My test message seems to be lost in the ether ;) The fact there was a network failure on Virgin since last night means I'm only just getti

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

2016-06-10 Thread Lester Caine
On 10/06/16 17:57, Rowan Collins wrote: > > For the record, I'm not entirely sure which way I want the language to > go, but I think it's a decision that needs to be made, and soon. Seconded ... even something like strict mode should be 'removable' to provide a smaller faster 'classic' PHP even i

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

2016-06-10 Thread Larry Garfield
On 06/10/2016 02:14 PM, Lester Caine wrote: On 10/06/16 17:57, Rowan Collins wrote: For the record, I'm not entirely sure which way I want the language to go, but I think it's a decision that needs to be made, and soon. Seconded ... even something like strict mode should be 'removable' to provi

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

2016-06-10 Thread Lester Caine
On 10/06/16 20:51, Larry Garfield wrote: > On 06/10/2016 02:14 PM, Lester Caine wrote: >> On 10/06/16 17:57, Rowan Collins wrote: >>> For the record, I'm not entirely sure which way I want the language to >>> go, but I think it's a decision that needs to be made, and soon. >> Seconded ... even some

[PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefinition

2016-06-10 Thread Dmitry Stogov
Hi internals, Please review: https://wiki.php.net/rfc/constant_redefinition Thanks. Dmitry.

Re: [PHP-DEV] [RFC] [VOTE] Replace "Missing argument" warning with "Too few arguments" exception

2016-06-10 Thread Sebastian Bergmann
On 06/06/2016 12:07 PM, Derick Rethans wrote: >> It's a shame it didn't make it for 7.0, but in my opinion, this should now >> wait for 8.0. > I agree with that statement, and hence voted "No". Same reason I voted no. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefinition

2016-06-10 Thread Levi Morrison
On Fri, Jun 10, 2016 at 2:06 PM, Dmitry Stogov wrote: > Hi internals, > > > Please review: https://wiki.php.net/rfc/constant_redefinition > > > Thanks. Dmitry. Dmitry, I am not sure this change will actually allow constant propagation either. Consider this code: In this series of events: -

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

2016-06-10 Thread Larry Garfield
On 06/10/2016 03:01 PM, Lester Caine wrote: On 10/06/16 20:51, Larry Garfield wrote: On 06/10/2016 02:14 PM, Lester Caine wrote: On 10/06/16 17:57, Rowan Collins wrote: For the record, I'm not entirely sure which way I want the language to go, but I think it's a decision that needs to be made,

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

2016-06-10 Thread Lester Caine
On 10/06/16 22:05, Larry Garfield wrote: > > https://seld.be/notes/php-versions-stats-2016-1-edition > > The code being written is veering heavily toward newer versions, and > anecdotally most of the code I see is classed with typed parameters. > (Yes, anecdotes are not data, and I acknowledged

Re: [PHP-DEV] [RFC] Throw Exception on Attempt of Constant Redefinition

2016-06-10 Thread Dmitry Stogov
In general, you are right, but this is possible only if application ignores Error exceptions... From: morrison.l...@gmail.com on behalf of Levi Morrison Sent: Friday, June 10, 2016 11:50:26 PM To: Dmitry Stogov Cc: PHP internals Subject: Re: [PHP-DEV] [RFC] Th

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

2016-06-10 Thread Benjamin Eberlei
It changes the language, and therefore is 2/3 (without +1 afaik, just 2/3 required). On Sat, Jun 11, 2016 at 12:09 AM, Benoit Schildknecht wrote: > Hi, > > Is it 2/3+1 or 1/2+1 ? I haven't seen it in the RFC. > > Cheeers. > > > Le Fri, 10 Jun 2016 12:38:04 +0200, Joe Watkins a > écrit: > > Afte

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

2016-06-10 Thread Benoit Schildknecht
Hi, Is it 2/3+1 or 1/2+1 ? I haven't seen it in the RFC. Cheeers. Le Fri, 10 Jun 2016 12:38:04 +0200, Joe Watkins a écrit: Afternoon internals, The vote for typed properties has been restarted. Please take part: https://wiki.php.net/rfc/typed-properties Cheers Joe -- Utilisa

[PHP-DEV] [RFC] Iterable

2016-06-10 Thread Aaron Piotrowski
Hello, I would like to propose a new iterable pseudo-type that accepts both arrays and objects implementing Traversable. Values accepted by iterable can then be used with foreach and yield from, or help to reduce type-checking logic in general. Please review the RFC here: https://wiki.php.net/r

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

2016-06-10 Thread Yasuo Ohgaki
Hi Dmitry, On Fri, Jun 10, 2016 at 9:37 PM, Dmitry Stogov wrote: > I hardly worked on implementation of this patch for a week, but I still don't > like it. > > It makes 15% slowdown on each property update in existing PHP code (without > types), and I don't see a way to improve this. > > Update