Edit report at https://bugs.php.net/bug.php?id=45743&edit=1

 ID:                 45743
 Comment by:         kezliura at gmail dot com
 Reported by:        ilewis at uk dot ibm dot com
 Summary:            property_exists fails to find static protected
                     member in child class
 Status:             Closed
 Type:               Bug
 Package:            Class/Object related
 Operating System:   Fedora 8
 PHP Version:        5.3CVS-2008-08-07 (snap)
 Assigned To:        felipe
 Block user comment: N
 Private report:     N

 New Comment:

Thanks, I just fixed my problem.
http://www.regimeanticholesterol.com/


Previous Comments:
------------------------------------------------------------------------
[2008-08-19 11:01:59] [email protected]

Sure, I've fixed it now, too. 

Thanks.

------------------------------------------------------------------------
[2008-08-19 08:11:26] ilewis at uk dot ibm dot com

That seems like a good fix, but the behaviour is now inconsistent with the docs 
:-) 

"This function checks if the given property exists in the specified class (and 
if it is accessible from the current scope)"

I guess that needs fixing up as well?

------------------------------------------------------------------------
[2008-08-18 17:50:44] [email protected]

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.

I've fixed the property_exists() behavior in 5_3 and HEAD. It now checks the 
existence, not the accessibility. (like the method_exists())

Thanks.

------------------------------------------------------------------------
[2008-08-18 16:51:29] [email protected]

In fact, the property_exists() behave differently than method_exists().

------------------------------------------------------------------------
[2008-08-18 10:20:27] ilewis at uk dot ibm dot com

re-opening as I've submitted an updated patch

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=45743


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=45743&edit=1

Reply via email to