Mantis - Quercus
Viewing Issue Advanced Details
3135 minor always 12-07-08 16:23 12-10-08 09:16
koreth  
nam  
normal  
closed 3.2.1  
fixed  
none    
none 4.0.0  
0003135: call_user_func and call_user_func_array don't support dynamic methods
<?php
class Foo {
  function __call($func, $args) {
    print "called $func\n";
  }
}
$foo = new Foo();
$foo->bar();
call_user_func_array(array($foo, 'bar'), array());
call_user_func(array($foo, 'bar'));

Vanilla PHP prints "called bar" twice. Quercus prints "called bar" once and then "Warning: Foo::bar() is an invalid callback method [call_user_func_array]" (and an identical warning for call_user_func).

Notes
(0003595)
nam   
12-10-08 09:16   
php/09le