|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-01-10 16:01 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
Description: ------------ This is using PHP 5.2.1 RC 1 (the one Edin posted to PHP-DEV recently). Reproduce code: --------------- <?php class Klass { public function __get($name_) { return array('Hello', 'World'); } }; $obj=new Klass(); foreach($obj->arr as $value) echo $value; ?> Expected result: ---------------- HelloWorld Actual result: -------------- PHP Notice: Indirect modification of overloaded property Klass::$arr has no effect in test.php on line 11 Notice: Indirect modification of overloaded property Klass::$arr has no effect in test.php on line 11 HelloWorld