Re: Proposal to deprecate create_function()

From: Date: Fri, 18 Oct 2013 13:37:50 +0000
Subject: Re: Proposal to deprecate create_function()
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message

I guess he is trying to say that writing a factory method for producing callable/anonymous functions are easier with create_function than with closures, because you call eval implicitly, instead of explicitly.
Exactly this historical "factory method" part is it. Thank You! sort of documentation for the previous link: https://github.com/phpcr/phpcr-utils/blob/master/src/PHPCR/Util/Console/Command/NodesUpdateCommand.php#L62 https://github.com/phpcr/phpcr-utils/blob/master/src/PHPCR/Util/Console/Helper/PhpcrCliHelper.php#L111 Not shure about a "safer version" with different name. Maybe breaking BC is acceptable to some degree, if touching and refactoring this to same codebase as closures.

Thread (33 messages)

« previous php.internals (#69680) next »