ID: 39990
Updated by: [EMAIL PROTECTED]
Reported By: michael dot walter at gmail dot com
-Status: Open
+Status: Assigned
-Bug Type: Compile Failure
+Bug Type: Scripting Engine problem
Operating System: Windows XP
PHP Version: 5.2.0
-Assigned To:
+Assigned To: dmitry
Previous Comments:
------------------------------------------------------------------------
[2006-12-30 08:11:45] michael dot walter at gmail dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39990&edit=1