bug 48541 - critical for PHP 5.3
| From: | Greg Beaver | Date: | Sat, 13 Jun 2009 06:13:53 +0000 |
| Subject: | bug 48541 - critical for PHP 5.3 | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-44258@lists.php.net to get a copy of this message | ||
Hi,
I didn't mark http://bugs.php.net/48541 as critical
because it is not a
critical bug, but it is critical that this thing be fixed in PHP 5.3.
I can do it if someone can answer this question: how do closures
uniquely identify themselves? spl_autoload_register is mistakenly
treating all closures as if they were a single copy of the static method
"Closure::__invoke", and so only the first registered closure is ever
called (plus it leaks the other closures at shutdown). If the system
can be made to better identify the closure, then spl_autoload_register
can use that (and also properly free the refcount on a dupe).
Greg