From: wb at pro-net dot co dot uk Operating system: FreeBSD PHP version: 5.0.0 PHP Bug Type: Zend Engine 2 problem Bug description: Reflection API issues.
Description: ------------ Hi, I have found two issues with the reflection api in php5. 1. The reflection API does not invoke the __autoload() function when checking to see if a class exists. Therefore if you rely on the __autoload() function to call the required files you get a 'ReflectionException' exception with message 'Class XXXX does not exist' 2. The reflection API returns object of UNKNOWN type in the constants array when you call the $class->getConstants() method when a class constant is defined like so: const BBB = SameClass::AAA; -- Edit bug report at http://bugs.php.net/?id=29447&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29447&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29447&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29447&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29447&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29447&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29447&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29447&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29447&r=support Expected behavior: http://bugs.php.net/fix.php?id=29447&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29447&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29447&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29447&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29447&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29447&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29447&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29447&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29447&r=float