|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50823 ReflectionFunction::isDeprecated producing "cannot be called statically" error
Submitted: 2010-01-22 13:08 UTC Modified: 2010-01-22 14:21 UTC
From: andreww at uk dot ibm dot com Assigned:
Status: Closed Package: Reflection related
PHP Version: 5.2.12 OS: *
Private report: No CVE-ID: None
 [2010-01-22 13:08 UTC] andreww at uk dot ibm dot com
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:
$rc = new ReflectionFunction('call_user_method');

Expected result:

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-22 14:21 UTC]
Automatic comment from SVN on behalf of jani
Log: - Fixed bug #50823 (ReflectionFunction::isDeprecated producing "cannot be called statically" error)
# Partial MF53 of r273045 by Felipe :)
 [2010-01-22 14:21 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Sep 24 10:03:36 2021 UTC