ID: 37217 Updated by: [EMAIL PROTECTED] Reported By: ahayes at wcg dot net dot au -Status: Open +Status: Bogus Bug Type: Class/Object related Operating System: Fedora Core 5 PHP Version: 5.1.2 New Comment:
Sorry, bug #33941 should have been marked as "Won't fix" as far as I can see. Previous Comments: ------------------------------------------------------------------------ [2006-04-27 07:00:41] ahayes at wcg dot net dot au Description: ------------ Please note I would like to submit bug 33941 as it still occurs within PHP 5.1.2 however it is stated at the mentioned bug report that it fixed as of PHP 5.0.4. Please see: http://bugs.php.net/bug.php?id=33941 dmitry states initially that the bug is not fixable @ 5 Aug 2005 12:06pm UTC however then later it states that the bug has been fixed. Can you please supply information as to whether this bug has been fixed or not? Thanks Alex Reproduce code: --------------- <?php class ex { public function __get($prop) { return unserialize($this->fields[$prop]); } public function __set($prop, $value) { $this->fields[$prop] = serialize($value); } private $fields; } $obj = new ex; $obj->prop = array(4 => 'pear'); $obj->prop[5] = 'apple'; var_dump($obj->prop); ?> Expected result: ---------------- array(1) { [4]=> string(4) "pear" [5]=> string(5) "apple" } Actual result: -------------- array(1) { [4]=> string(4) "pear" } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37217&edit=1