From: andreww at uk dot ibm dot com
Operating system: *
PHP version: 5.2.12
PHP Bug Type: Reflection related
Bug description: ReflectionFunction::isDeprecated producing "cannot be called
statically" error
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 bug report at http://bugs.php.net/?id=50823&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50823&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50823&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50823&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50823&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50823&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50823&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50823&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50823&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50823&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50823&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50823&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50823&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50823&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50823&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50823&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50823&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50823&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50823&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50823&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50823&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50823&r=mysqlcfg