|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-02 19:29 UTC] jani@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 08:00:02 2025 UTC |
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