#29447 [Com]: Reflection API issues.
| From: | kevinphpdotnet at stormtide dot ca | Date: | Mon, 16 Aug 2004 08:16:41 +0000 |
| Subject: | #29447 [Com]: Reflection API issues. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64686@lists.php.net to get a copy of this message | ||
ID: 29447
Comment by: kevinphpdotnet at stormtide dot ca
Reported By: wb at pro-net dot co dot uk
Status: Open
Bug Type: Zend Engine 2 problem
Operating System: FreeBSD
PHP Version: 5.0.0
New Comment:
In addition to the issues reported, It will also invoke __autoload to
try to find the Reflection_Class class generating a
Warning: __autoload(... file ...) failed to open stream.
as its trying to find the source file to locate the reflection api base
classes.
Previous Comments:
------------------------------------------------------------------------
[2004-07-29 18:42:22] 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;
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29447&edit=1