ID: 33903 Updated by: [EMAIL PROTECTED] Reported By: marcos dot neves at gmail dot com -Status: Feedback +Status: Closed Bug Type: Feature/Change Request Operating System: * -PHP Version: 5.1.0 +PHP Version: 5.1.0-rc1 Assigned To: helly New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2005-09-21 12:11:32] [EMAIL PROTECTED] Implemented in HEAD please check. ------------------------------------------------------------------------ [2005-07-28 20:41:39] [EMAIL PROTECTED] This has to be delayed until after 5.1 since it requires a complete reqrite of the internal function handling. Maybe staic functions are easier. ------------------------------------------------------------------------ [2005-07-28 14:02:26] marcos dot neves at gmail dot com Description: ------------ What about spl_autoload_register accept class methods too, like usort and other php functions Reproduce code: --------------- <? class MyAutoLoader { function autoLoad($className) { // autload code } } spl_autoload_register(array('MyAutoLoader', 'autoLoad')); // and $myAutoLoader = new MyAutoLoader(); spl_autoload_register(array($myAutoLoader, 'autoLoad')); ?> Expected result: ---------------- works! Actual result: -------------- Warning: spl_autoload_register() expects parameter 1 to be string, array given in C:\wamp\include_path\tests\spl\spl_autoload_register_class.test.php on line 10 Warning: spl_autoload_register() expects parameter 1 to be string, array given in C:\wamp\include_path\tests\spl\spl_autoload_register_class.test.php on line 15 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33903&edit=1