#31006 [Opn->Bgs]: __get : fictive attribute can be accessed only once !
ID: 31006
Updated by: tony2001@php.net
Reported By: naholyr at yahoo dot fr
-Status: Open
+Status: Bogus
Bug Type: Class/Object related
Operating System: Windows 2K, XP
PHP Version: 5.0.2
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Duplicate of #28444.
Previous Comments:
------------------------------------------------------------------------
[2004-12-07 10:04:04] naholyr at yahoo dot fr
Description:
------------
See the file in "Reproduce code" section. My english is bad and a
sample is always better than explanations.
The method to focus is Field::__get().
In this file you'll find 2 codes:
# BUGGY.PHP
The code which reproduces the bug.
# NOTBUGGY.PHP
The code which works.
We have invented single use attributes ! lol
And the best: __set is not affected...
Reproduce code:
---------------
http://naholyr.free.fr/php/__get.txt
Expected result:
----------------
MyName - MyName
Actual result:
--------------
MyName - Fatal error: Cannot access private property Field::$_value in
### on line ##
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31006&edit=1
Thread (2 messages)