From:             [EMAIL PROTECTED]
Operating system: Mac OS X 10.1
PHP version:      4CVS-2002-10-11
PHP Bug Type:     Zend Engine 2 problem
Bug description:  __call() does not catch call_user_func_array() calls

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 bug report at http://bugs.php.net/?id=19859&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=19859&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=19859&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=19859&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=19859&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=19859&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=19859&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=19859&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=19859&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=19859&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=19859&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19859&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=19859&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=19859&r=isapi

Reply via email to