php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31006 __get : fictive attribute can be accessed only once !
Submitted: 2004-12-07 10:04 UTC Modified: 2005-01-12 00:56 UTC
From: naholyr at yahoo dot fr Assigned:
Status: Not a bug Package: Class/Object related
PHP Version: 5.0.2 OS: Windows 2K, XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: naholyr at yahoo dot fr
New email:
PHP Version: OS:

 

 [2004-12-07 10:04 UTC] 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 ##

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-12 00:56 UTC] tony2001@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 14:01:29 2024 UTC