|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-03-03 08:22 UTC] derick@php.net
[2004-03-04 13:36 UTC] andi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Feb 02 11:00:01 2026 UTC |
Description: ------------ I tried the following with the lastest snapshot php4-STABLE-200403031030/sapi/cli/php just did a ./configure without an options when using double references (accidently or not) the variables in PHP get corrupted. $acl contains the content of $y If you change the line $y = 'TestString'; to #$y = 'TestString'; or add an var_dump($acl) before that line everything works as expected (including the call to the undefined function of that object). It looks like an internal pointer is not reseted correctly previous version sometimes crashed wich seems no longer to be the case. Reproduce code: --------------- class TestObj { var $x; function &save() { return $this; } } $acl = new TestObj(); $acl = &$acl->save(); $y = 'TestString'; var_dump($acl); if (is_object($acl)) { $acl->dump(); } Expected result: ---------------- object(testobj)(0) { } Actual result: -------------- string(10) "TestString"