|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-08-03 20:33 UTC] derick@php.net
[2005-08-03 20:43 UTC] na at index20 dot ru
[2005-08-03 20:56 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Mar 26 09:00:01 2026 UTC |
Description: ------------ See reproduce code. Reproduce code: --------------- <?php class A {} class RefTest { function RefTest() { $this->a = new A; $this->b =& $this->a; } } $rt = new RefTest(); var_dump($rt); ?> Expected result: ---------------- object(reftest)(2) { ["a"]=> object(a)(0) { } ["b"]=> &object(a)(0) { } } Actual result: -------------- object(reftest)(2) { ["a"]=> &object(a)(0) { } ["b"]=> &object(a)(0) { } }