From: ies_clan at hotmail dot com Operating system: Windows XP home PHP version: 5.3.0 PHP Bug Type: Class/Object related Bug description: get and set are not fixed
Description: ------------ look @ the code.... Reproduce code: --------------- <?php error_reporting(E_ALL); class newclass { private $properties; public function &__get($key) { echo "get $key<br>"; return $this->properties[$key]; } public function __set($key, $val) { echo "set $key to $val<br>"; $this->properties[$key] = $val; } } $c = new newclass; $c->array['test'] = 'test'; Expected result: ---------------- get array set array to test Actual result: -------------- get array -- Edit bug report at http://bugs.php.net/?id=49499&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49499&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49499&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49499&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49499&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49499&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49499&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49499&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49499&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49499&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49499&r=support Expected behavior: http://bugs.php.net/fix.php?id=49499&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49499&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49499&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49499&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49499&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49499&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49499&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49499&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49499&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49499&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49499&r=mysqlcfg