ID: 19859 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Verified Bug Type: Zend Engine 2 problem Operating System: Mac OS X 10.1 PHP Version: 4CVS-2002-10-11
Previous Comments: ------------------------------------------------------------------------ [2002-10-11 05:33:13] [EMAIL PROTECTED] If an undefined class method is called via call_user_func_array(), the ZE2 __call() handler won't catch it. class test { function __call($method,$args) { print "test::__call invoked for method '$method'\n"; } } $x = new test; $x->fake(1); call_user_func_array(array($x,'fake'),array(1)); Output: test::__call invoked for method 'fake' Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'test::fake' was given in /usr/local/book/book/catalog/classes/bug.php on line 11 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=19859&edit=1