ID:               50823
 Updated by:       j...@php.net
 Reported By:      andreww at uk dot ibm dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Reflection related
 Operating System: *
 PHP Version:      5.2.12
 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2010-01-22 14:21:17] s...@php.net

Automatic comment from SVN on behalf of jani
Revision: http://svn.php.net/viewvc/?view=revision&revision=293850
Log: - Fixed bug #50823 (ReflectionFunction::isDeprecated producing
"cannot be called statically" error)
# Partial MF53 of r273045 by Felipe :)

------------------------------------------------------------------------

[2010-01-22 13:08:03] andreww at uk dot ibm dot com

Description:
------------
Creating a new ReflectionFunction instance and then calling it's
isDprecated function results in 

Fatal error: isDeprecated() cannot be called statically

This is only an issue on PHP 5.2, testing on 5.3 and 6 produce the
expected result.

Reproduce code:
---------------
<?php
$rc = new ReflectionFunction('call_user_method');
var_dump($rc->isDeprecated());
?>


Expected result:
----------------
bool(true)

Actual result:
--------------
Fatal error: isDeprecated() cannot be called statically in
C:\php5.2.12\test.php on line 3


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=50823&edit=1

Reply via email to