php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #36126 unset() docs don't mention unsetting of object properties
Submitted: 2006-01-22 19:12 UTC Modified: 2006-01-30 16:21 UTC
From: pornel at despammed dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2006-01-22 19:12 UTC] 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.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-30 16:21 UTC] vrana@php.net
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."
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 22:01:31 2025 UTC