|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-12-01 15:57 UTC] leigh@php.net
-Status: Open
+Status: Not a bug
[2015-12-01 15:57 UTC] leigh@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 08:00:01 2025 UTC |
Description: ------------ The values that are printed are both 11 and 12. I doubt this is correct behaviour. Test script: --------------- class A { public $z = 10; } $a1 = new A(); $z = &$a1->z; $a2 = clone $a1; $a1->z = 11; var_dump($z); $a2->z = 12; var_dump($z);