From: Operating system: ALL PHP version: 5.2.14 Package: Class/Object related Bug Type: Bug Bug description:scrambled class name passed by call_user_func on non existing methods
Description: ------------ I have discovered weird call_user_func behaviour while calling non existing method of the class. Instead of throwing some type of warning it tries to call non existing class with scrambled name. Test script: --------------- <?php class experimental{} function __autoload($class_name) { echo sprintf('<pre>%s</pre>',print_r(debug_backtrace(),true)); } call_user_func(array('experimental','non_existing_method')); ?> Expected result: ---------------- some king of warning or error Actual result: -------------- Array ( [0] => Array ( [function] => __autoload [args] => Array ( [0] => zybplbn6ps6m ) ) [1] => Array ( [file] => /www/test.php [line] => 13 [function] => call_user_func [args] => Array ( [0] => Array ( [0] => experimental [1] => non_existing_method ) ) ) ) -- Edit bug report at http://bugs.php.net/bug.php?id=52641&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52641&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52641&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52641&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52641&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52641&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52641&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52641&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52641&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52641&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52641&r=support Expected behavior: http://bugs.php.net/fix.php?id=52641&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52641&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52641&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52641&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52641&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52641&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52641&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52641&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52641&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52641&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52641&r=mysqlcfg