Re: Re: [RFC] Deprecations for PHP 7.1

From: Date: Sat, 05 Mar 2016 03:50:34 +0000
Subject: Re: Re: [RFC] Deprecations for PHP 7.1
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-91506@lists.php.net to get a copy of this message
On 03/04/2016 03:49 PM, Johannes Schlüter wrote:
On Fri, 2016-03-04 at 12:29 -0600, Stephen Coakley wrote:
Not a complete polyfill, since $newfunc is a closure and not a string, so you cannot print out the function name. I have no idea if any code relies on the lambda itself being a string though.
This has impact on a few things, i.e. Reflection or users might guess the name. Anyways: Take away: A polyfill won't be 100% identical. However the typical use case should be around usort() or similar where this doesn't matter. johannes
I'm not entirely sure about what you mean. On my system, create_function returns something like '\x00lambda_1'. Do you mean that users are guessing such a string in order to use it? Sounds like the smelliest of code smells. -- Stephen

« previous php.internals (#91506) next »