Re: [PHP-DEV] [RFC Proposal] var keyword deprecation/removal

2016-02-27 Thread Jakub Kubíček
Good morning Internals! I am strongly AGAINST the removal of the `var` keyword from PHP syntax. Though in general it's an alias of `public` (or it simply ‘acts’ as the `public` modifier), I see a difference in its _semantics_. While the `public` modifier states anyone can change the property, `var

Re: [PHP-DEV] Change in internal call_user_function() API.

2016-02-27 Thread Xinchen Hui
Hey: On Thu, Feb 25, 2016 at 11:16 PM, Dmitry Stogov wrote: > Hi, > > > PHP-7.0 internal call_user_function() API doesn't support function calls > with preinitialised symbol tables. > > This just can't work in general , because values of arguments might be > already initialized in CV as well as

[PHP-DEV] Re: [RFC Discussion] Precise session management

2016-02-27 Thread Yasuo Ohgaki
Hi all, On Fri, Feb 26, 2016 at 4:09 PM, Yasuo Ohgaki wrote: > I haven't changed E_RECOVERABLE_ERROR to exception yet. > Anyone has opinion on this? If not, I'll convert the error to exception > and start vote. I would like to ask what kind of exception should be raised. Currently, we have http

Re: [PHP-DEV] Re: [RFC] Callable constructors

2016-02-27 Thread Rowan Collins
On 26/02/2016 11:28, Andrea Faulds wrote: Then we could add to that a special case for constructors: - Callable::forConstructor(string $class_name) Oh, that's quite a clean solution, I like that. Heck, no need for Callable, we already have ->getClosure() in Reflection. A modified version of

Re: [PHP-DEV] Re: [RFC] Callable constructors

2016-02-27 Thread Rowan Collins
On 26/02/2016 11:47, Nikita Nefedov wrote: Then we could add to that a special case for constructors: - Callable::forConstructor(string $class_name) Oh, that's quite a clean solution, I like that. Heck, no need for Callable, we already have ->getClosure() in Reflection. A modified version o

Re: [PHP-DEV] [RFC] Callable constructors

2016-02-27 Thread Rowan Collins
On 26/02/2016 17:08, Dan Ackroyd wrote: Rowan Wrote: I would like to join Adam in asking if you can find examples in other languages where constructors can be used as though they were static methods in this way. Python would be a good example. constructors are just functions that can be called,