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

2016-05-20 Thread Tom Worster
On 5/20/16 2:05 AM, Joe Watkins wrote: Morning internals, Since we have our answer on nullable types, typed properties can now go to vote. https://wiki.php.net/rfc/typed-properties#vote Note that, support for nullability as RFC'd will be merged when the implementation for

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

2016-05-20 Thread guilhermebla...@gmail.com
Joe, I fixed a minor typo in the RFC, hope you didn't mind. =) On Fri, May 20, 2016 at 5:25 AM, Lester Caine wrote: > On 20/05/16 07:05, Joe Watkins wrote: > > Morning internals, > > > > Since we have our answer on nullable types, typed properties can now > go > > to

Re: [PHP-DEV] Implement Generator::__invoke($value) as alias to Generator::send($value)

2016-05-20 Thread Niklas Keller
2016-05-20 16:47 GMT+02:00 S.A.N : > 2016-05-20 17:41 GMT+03:00 Niklas Keller : > > 2016-05-20 15:34 GMT+02:00 S.A.N : > >> > >> Many interfaces work with callback functions, but they might work with > >> the generators, if there was

Re: [PHP-DEV] Implement Generator::__invoke($value) as alias to Generator::send($value)

2016-05-20 Thread S.A.N
2016-05-20 17:41 GMT+03:00 Niklas Keller : > 2016-05-20 15:34 GMT+02:00 S.A.N : >> >> Many interfaces work with callback functions, but they might work with >> the generators, if there was a method Generator::__invoke($value). > > > You can just use

Re: [PHP-DEV] Implement Generator::__invoke($value) as alias to Generator::send($value)

2016-05-20 Thread Niklas Keller
2016-05-20 15:34 GMT+02:00 S.A.N : > Many interfaces work with callback functions, but they might work with > the generators, if there was a method Generator::__invoke($value). You can just use [$generator, "send"].

[PHP-DEV] Re: "finally" handling refactoring (Bug #72213)

2016-05-20 Thread Nikita Popov
On Fri, May 20, 2016 at 2:07 PM, Dmitry Stogov wrote: > hi, > > > Please review the path > https://gist.github.com/dstogov/0a809891c6a3ac3fac4bd0d9711dd330 > > > I hope, it should completely fix https://bugs.php.net/bug.php?id=72213 > > > I'm going to commit this on Monday. > >

[PHP-DEV] Implement Generator::__invoke($value) as alias to Generator::send($value)

2016-05-20 Thread S.A.N
Many interfaces work with callback functions, but they might work with the generators, if there was a method Generator::__invoke($value). I apologize if this topic has been discussed. Thank. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

[PHP-DEV] Re: "finally" handling refactoring (Bug #72213)

2016-05-20 Thread Nikita Popov
On Fri, May 20, 2016 at 2:07 PM, Dmitry Stogov wrote: > hi, > > > Please review the path > https://gist.github.com/dstogov/0a809891c6a3ac3fac4bd0d9711dd330 > > > I hope, it should completely fix https://bugs.php.net/bug.php?id=72213 > > > I'm going to commit this on Monday. > >

[PHP-DEV] UGLY Benchmark Results for PHP Master 2016-05-20

2016-05-20 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-05-20 06:29:09+03:00 commit: 4f077ae previous commit:88196e9 revision date: 2016-05-20 01:51:05+02: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] "finally" handling refactoring (Bug #72213)

2016-05-20 Thread Derick Rethans
On Fri, 20 May 2016, Dmitry Stogov wrote: > Please review the path > https://gist.github.com/dstogov/0a809891c6a3ac3fac4bd0d9711dd330 https://gist.github.com/dstogov/0a809891c6a3ac3fac4bd0d9711dd330#file-bug72213-diff-L194-L196

[PHP-DEV] "finally" handling refactoring (Bug #72213)

2016-05-20 Thread Dmitry Stogov
hi, Please review the path https://gist.github.com/dstogov/0a809891c6a3ac3fac4bd0d9711dd330 I hope, it should completely fix https://bugs.php.net/bug.php?id=72213 I'm going to commit this on Monday. Thanks. Dmitry.

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

2016-05-20 Thread Lester Caine
On 20/05/16 07:05, Joe Watkins wrote: > Morning internals, > > Since we have our answer on nullable types, typed properties can now go > to vote. > > https://wiki.php.net/rfc/typed-properties#vote > > Note that, support for nullability as RFC'd will be merged when the >

Re: [PHP-DEV] Exception::getLine()

2016-05-20 Thread Rowan Collins
On 20/05/2016 08:22, Niklas Keller wrote: 2016-05-20 4:13 GMT+02:00 Jesse Schalken : The top frame is the construction (get_error) and the site of the throw (do_throw) doesn't appear in the stack at all. The comparison with JavaScript isn't a good one, since you can

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

2016-05-20 Thread Larry Garfield
On 05/20/2016 08:05 AM, Joe Watkins wrote: Morning internals, Since we have our answer on nullable types, typed properties can now go to vote. https://wiki.php.net/rfc/typed-properties#vote Note that, support for nullability as RFC'd will be merged when the implementation for

Re: [PHP-DEV] [RFC][VOTE] Nullable Types

2016-05-20 Thread Pascal MARTIN, AFUP
Le 10/05/2016 à 17:22, Levi Morrison a écrit : Dmitry and I have opened [voting on Nullable Types][1]. [1]: https://wiki.php.net/rfc/nullable_types#voting_choices Hi, At AFUP, we would be +1 for having nullable types, for both parameters and return values. It often seems, with PHP 7.0,

Re: [PHP-DEV] Exception::getLine()

2016-05-20 Thread Niklas Keller
2016-05-20 4:13 GMT+02:00 Jesse Schalken : > > On Fri, May 20, 2016 at 4:35 AM, Rasmus Schultz > wrote: > >> This is inconsistent with at least JavaScript and C#, where the stack >> trace is populated at the throw site. (Probably others?) >> > > I'm

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

2016-05-20 Thread Joe Watkins
Morning internals, Since we have our answer on nullable types, typed properties can now go to vote. https://wiki.php.net/rfc/typed-properties#vote Note that, support for nullability as RFC'd will be merged when the implementation for nullable_types is merged into master. Please