| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2008-03-20 01:07 UTC] dsp@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 06:00:01 2025 UTC | 
Description: ------------ call_user_method_array issues a "cannot call method foo()" warning when an exception is thrown. Reproduce code: --------------- class Foo { public function bar() { throw new Exception(); } public function test() { call_user_func_array(array($this, 'bar'), array()); } } try { $bar = new Foo(); call_user_method_array('test', $bar, array()) ; } catch (Exception $e) { } Expected result: ---------------- no output Actual result: -------------- Warning: call_user_method_array(): Unable to call test() in /path/to/call.php on line 17