#29447 [Opn->Csd]: Reflection API issues.
| From: | helly@php.net | Date: | Mon, 16 Aug 2004 08:53:18 +0000 |
| Subject: | #29447 [Opn->Csd]: Reflection API issues. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64688@lists.php.net to get a copy of this message | ||
ID: 29447
Updated by: helly@php.net
Reported By: wb at pro-net dot co dot uk
-Status: Open
+Status: Closed
Bug Type: Zend Engine 2 problem
-Operating System: FreeBSD
+Operating System: *
-PHP Version: 5.0.0
+PHP Version: 5.0.1
-Assigned To:
+Assigned To: helly
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Reflection_Class does not exist it is ReflectionClass .
Apart from that the bug is fixed.
Previous Comments:
------------------------------------------------------------------------
[2004-08-16 10:16:39] kevinphpdotnet at stormtide dot ca
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.
------------------------------------------------------------------------
[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