|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug61697.phpt (last revision 2012-04-12 05:19 UTC by laruence@php.net)bug61697.patch (last revision 2012-04-12 05:16 UTC by laruence@php.net) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-04-12 05:16 UTC] laruence@php.net
[2012-04-12 05:19 UTC] laruence@php.net
[2012-04-12 05:21 UTC] laruence@php.net
-Status: Open
+Status: Analyzed
[2012-04-12 05:21 UTC] laruence@php.net
[2012-04-19 23:52 UTC] felipe@php.net
-Status: Analyzed
+Status: Assigned
-Assigned To:
+Assigned To: colder
[2013-03-11 04:09 UTC] stadli at gmx dot de
[2013-06-24 18:12 UTC] felipe@php.net
-Assigned To: colder
+Assigned To: dsp
[2013-06-24 18:12 UTC] felipe@php.net
[2013-06-25 05:18 UTC] laruence@php.net
[2013-07-22 05:47 UTC] stas@php.net
[2013-07-22 05:47 UTC] stas@php.net
-Status: Assigned
+Status: Closed
[2013-07-23 17:53 UTC] aharvey@php.net
-Status: Closed
+Status: Re-Opened
-Assigned To: dsp
+Assigned To: aharvey
[2013-07-23 17:53 UTC] aharvey@php.net
[2013-07-23 18:46 UTC] aharvey@php.net
-Status: Re-Opened
+Status: Closed
[2013-07-23 18:46 UTC] aharvey@php.net
[2013-07-23 18:47 UTC] aharvey@php.net
[2013-11-17 09:30 UTC] laruence@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 13:00:01 2025 UTC |
Description: ------------ spl_autoload_functions() doesn't return the names of lambda-functions registered with spl_autoload_register() correctly. Actually it always returns '__lambda_func' for every lambda function so you can't use the result with spl_autoload_unregister() for example. Test script: --------------- <?php function f1($class) { echo "f1: [[$class]]\n"; } function f2($class) { echo "f2: [[$class]]\n"; } spl_autoload_register('f1'); spl_autoload_register('f2'); spl_autoload_register(create_function('$class', 'echo "cf1: [[$class]]\n";')); spl_autoload_register(create_function('$class', 'echo "cf2: [[$class]]\n";')); var_dump(spl_autoload_functions()); foreach (spl_autoload_functions() AS $func) { spl_autoload_unregister($func); } var_dump(spl_autoload_functions()); ?> Expected result: ---------------- All autoload functions are unregistered Actual result: -------------- lambda functions aren't unregistered