|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 3135 | minor | always | 12-07-08 16:23 | 12-10-08 09:16 | |
|
|
|||||
| Reporter: | koreth | Platform: | |||
| Assigned To: | nam | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 3.2.1 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|
|||||
| Summary: | 0003135: call_user_func and call_user_func_array don't support dynamic methods | ||||
| Description: |
<?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). |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||