#44144 [NEW]: spl_autoload_functions() should return object instance when appropriate

From: Date: Mon, 18 Feb 2008 02:07:06 +0000
Subject: #44144 [NEW]: spl_autoload_functions() should return object instance when appropriate
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122372@lists.php.net to get a copy of this message
From: ezyang@php.net Operating system: Irrelevant PHP version: 5.3CVS-2008-02-18 (CVS) PHP Bug Type: SPL related Bug description: spl_autoload_functions() should return object instance when appropriate 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 -- Edit bug report at http://bugs.php.net/?id=44144&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44144&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44144&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44144&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44144&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44144&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44144&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44144&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44144&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44144&r=support Expected behavior: http://bugs.php.net/fix.php?id=44144&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44144&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44144&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44144&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44144&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44144&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44144&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44144&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44144&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44144&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44144&r=mysqlcfg

« previous php.bugs (#122372) next »