php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #45774 Cannot return an overloaded property by reference
Submitted: 2008-08-10 00:52 UTC Modified: 2009-11-20 14:06 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: jtaal at eljakim dot nl Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jtaal at eljakim dot nl
New email:
PHP Version: OS:

 

 [2008-08-10 00:52 UTC] jtaal at eljakim dot nl
Description:
------------
Since bug http://bugs.php.net/43736 is called Bogus without any explaination

tony2001:

Why don't you explain WHY this isn't a bug! Obivously you've thought about it, why not explain it. What is the use of searching for bugs when the answers aren't there!!?!
The reference to reading *the manual* is just ridiculous.

Maybe you could make a Documentation Problem out of it, because I'm getting the samen NOTICE in the same situation.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-20 14:06 UTC] vrana@php.net
<?php
class C {
	var $a = 5;
	function &__get($name) {
		return $this->a;
	}
}
$obj = new C;
$x = &$obj->b;
$x = 6;
var_dump($obj->a);
?>

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jun 25 07:00:01 2026 UTC