#45774 [Opn->Bgs]: Cannot return an overloaded property by reference
ID: 45774
Updated by: vrana@php.net
Reported By: jtaal at eljakim dot nl
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
New Comment:
<?php
class C {
var $a = 5;
function &__get($name) {
return $this->a;
}
}
$obj = new C;
$x = &$obj->b;
$x = 6;
var_dump($obj->a);
?>
Previous Comments:
------------------------------------------------------------------------
[2008-08-10 00:52:55] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45774&edit=1
Thread (2 messages)