#46604 [Opn->Csd]: ReflectionClass::getProperty() fails
| From: | felipe@php.net | Date: | Fri, 21 Nov 2008 23:33:07 +0000 |
| Subject: | #46604 [Opn->Csd]: ReflectionClass::getProperty() fails | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-131197@lists.php.net to get a copy of this message | ||
ID: 46604
Updated by: felipe@php.net
Reported By: ant@php.net
-Status: Open
+Status: Closed
Bug Type: Reflection related
Operating System: Windows/Linux
PHP Version: 6CVS-2008-11-18 (snap)
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.
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2008-11-18 15:49:01] ant@php.net
Description:
------------
ReflectionClass::getProperty() returns a NULL on PHP 6 - it works as
expected on PHP 5.3 and 5.2.6. There are some tests now checked into
CVS that show the unexpected behaviour:
ext/reflection/tests/ReflectionClass_getProperty_001.phpt
ext/reflection/tests/ReflectionClass_getProperty_003.phpt
ext/reflection/tests/ReflectionClass_getProperty_004.phpt
These tests have been marked with an --XFAIL-- section so they should
show up as expected failures.
Reproduce code:
---------------
See the following tests in CVS:
ext/reflection/tests/ReflectionClass_getProperty_001.phpt
ext/reflection/tests/ReflectionClass_getProperty_003.phpt
ext/reflection/tests/ReflectionClass_getProperty_004.phpt
Expected result:
----------------
083- --> Check for a: Property a does not exist
Actual result:
--------------
083+ --> Check for a: NULL
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46604&edit=1