|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19859 __call() does not catch call_user_func_array() calls
Submitted: 2002-10-11 05:33 UTC Modified: 2003-07-03 04:23 UTC
From: tater at potatoe dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.0-dev OS: All
Private report: No CVE-ID: None
 [2002-10-11 05:33 UTC] tater at potatoe dot com
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;

test::__call invoked for method 'fake'
Warning: 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-03 04:23 UTC]
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at
In case this was a documentation problem, the fix will show up soon at

In case this was a website problem, the change will show
up on the site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 08:01:25 2019 UTC