ID: 46058 Updated by: j...@php.net Reported By: fel...@php.net -Status: Open +Status: Wont fix Bug Type: Reflection related Operating System: * PHP Version: 5.2CVS-2009-04-30 New Comment:
So use 5.3 or HEAD. Not a security bug or critical. Previous Comments: ------------------------------------------------------------------------ [2008-09-11 19:40:09] fel...@php.net Description: ------------ Currently the behavior is different of 5.3 and HEAD. Note also: the method name in the warning message. Reproduce code: --------------- <?php $x = new ReflectionMethod('reflectionfunction', 'invoke'); var_dump($x->invokeArgs(new ReflectionFunction('trim'), array(' foobar '))); Expected result: ---------------- string(6) "foobar" Actual result: -------------- Fatal error: Non-static method ReflectionFunction::trim() cannot be called statically in %s on line %d ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46058&edit=1