ID:               46058
 Comment by:       dypa at bk dot ru
 Reported By:      fel...@php.net
 Status:           Open
 Bug Type:         Reflection related
 Operating System: *
 PHP Version:      5.2CVS-2008-09-11 (CVS)
 New Comment:

5.2.9-2 Windows NT DYPA 5.1 build 2600 
Fatal error: Non-static method ReflectionFunction::trim() cannot be
called statically


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

Reply via email to