ID: 43282 Updated by: [EMAIL PROTECTED] Reported By: stas at zend dot com Status: Open Bug Type: Class/Object related Operating System: * PHP Version: 5.3CVS-2007-11-13 (CVS) -Assigned To: +Assigned To: jani New Comment:
I think it was recent change by Jani that broke it. Previous Comments: ------------------------------------------------------------------------ [2007-11-13 23:28:27] stas at zend dot com Description: ------------ When call_user_func is given callback array with class name as string, it refuses to call non-static functions, even though PHP can call it with just E_STRICT. Reproduce code: --------------- <?php class Foo { function bar() { echo "OK!"; } } call_user_func(array("Foo", "bar"), 123); Foo::bar(123); Expected result: ---------------- OK!OK! Actual result: -------------- Warning: call_user_func() expects parameter 1 to be valid callback, array given in t.php on line 5 OK! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43282&edit=1