Mantis - Quercus
Viewing Issue Advanced Details
2927 major always 09-11-08 17:27 09-12-08 09:25
koreth  
ferg  
normal  
closed 3.2.1  
fixed  
none    
none 3.2.1  
0002927: Dynamic method calls don't work with more than 5 arguments
The first method call works; the second bombs out with "Fatal Error: 'x' is an unknown method of ObjectExtValue@784920740[Foo]."

<?php
class Foo {
  function __call($function, $args) {
    print "call $function\n";
  }
}

$c = new Foo();
$method = 'x';

// This works
print $c->$method(1, 1, 1, 1, 1);

// But this doesn't
print $c->$method(1, 1, 1, 1, 1, 1);
This was a tricky one to figure out how to reproduce!

Notes
(0003434)
ferg   
09-12-08 09:25   
php/09kl, php/39kl