PHP :: Bug #29447 :: Reflection API issues.
| Bug #29447 | Reflection API issues. | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2004-07-29 18:42 UTC | Modified: | 2004-08-16 10:53 UTC |
|
||||||||||
| From: | wb at pro-net dot co dot uk | Assigned: | helly (profile) | |||||||||||
| Status: | Closed | Package: | Scripting Engine problem | |||||||||||
| PHP Version: | 5.0.1 | OS: | * | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2004-07-29 18:42 UTC] wb at pro-net dot co dot uk
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;
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2004-08-16 10:16 UTC] kevinphpdotnet at stormtide dot ca
[2004-08-16 10:53 UTC] helly@php.net