#46058 [Opn->WFx]: ReflectionMethod::invoke - wrong behavior (PHP_5_2 only)

From: Date: Wed, 02 Sep 2009 19:29:21 +0000
Subject: #46058 [Opn->WFx]: ReflectionMethod::invoke - wrong behavior (PHP_5_2 only)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141875@lists.php.net to get a copy of this message
ID: 46058 Updated by: jani@php.net Reported By: felipe@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] felipe@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

« previous php.bugs (#141875) next »