|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-29 13:48 UTC] colder@php.net
[2008-02-29 21:31 UTC] ezyang@php.net
[2009-07-28 22:25 UTC] svn@php.net
[2009-09-22 17:40 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
Description: ------------ spl_autoload_functions() should return object instances, not class names, when appropriate. Reproduce code: --------------- <?php class Foo { public function nonstaticMethod() {} } $foo = new Foo; spl_autoload_register(array($foo, 'nonstaticMethod')); $funcs = spl_autoload_functions(); print_r((int) is_object($func[0][0])); Expected result: ---------------- 1 Actual result: -------------- 0