For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > January 2006 > #36126 [Opn->Csd]: unset() docs don't mention unsetting of object properties









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #36126 [Opn->Csd]: unset() docs don't mention unsetting of object properties
vrana@php.net

2006-01-30, 6:57 pm

ID: 36126
Updated by: vrana@php.net
Reported By: pornel at despammed dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.

"It is possible to unset even object properties visible in current
context."


Previous Comments:
------------------------------------------------------------------------

[2006-01-22 19:12:10] pornel at despammed dot com

Description:
------------
Documentation doesn't say how unset() works on objects'
properties.


For example PHP allows unsetting of any object property (even
if declared protected/private) allowing fallback to __get/
__set functions. Since this is very useful for debugging and
O/R mapping it'd be nice if that behavior was documented.





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


--
Edit this bug report at http://bugs.php.net/?id=36126&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com