php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46604 ReflectionClass::getProperty() fails
Submitted: 2008-11-18 15:49 UTC Modified: 2008-11-21 23:33 UTC
From: ant@php.net Assigned:
Status: Closed Package: Reflection related
PHP Version: 6CVS-2008-11-18 (snap) OS: Windows/Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ant@php.net
New email:
PHP Version: OS:

 

 [2008-11-18 15:49 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-21 23:33 UTC] felipe@php.net
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!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC