|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-11 09:17 UTC] tony2001@php.net
[2007-02-11 19:00 UTC] Jason at V7Studios dot com
[2007-02-11 19:11 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 12:00:02 2025 UTC |
Description: ------------ A certain object reference situation that my code depends on has been broken in 5.2.1 on *windows*. It works on my linux production server running 5.2.1. Thanks. Reproduce code: --------------- class Foo { private $params = array(); function __set($name, $value){ $this->params[$name] = $value; } function &__get($name){ return $this->params[$name]; } } $foo = new Foo(); $ref =& $foo->bar; $ref = "This is a test"; print($foo->bar); Expected result: ---------------- It should print out "This is a test" Actual result: -------------- On windows, nothing is printed out. $foo->bar is not set.