From: jaanus at heeringson dot com Operating system: Linux 2.4 jkernel source distro PHP version: 5.0.0b1 (beta1) PHP Bug Type: Class/Object related Bug description: __set not triggered when overloading with array
Description: ------------ When overloading a class with a property containing an array by assigning an element to to the new array the __set handle does not fire, but the element gets created. Reproduce code: --------------- <?php class myclass { public function __set($name,$data) { echo("Name: {$name}<br/>\nData: {$data}<br/>\n"); //prints out input when fired } } $test=new myclass(); $test->style['temp']='content'; //creates a new property print_r($test->style); //check if property is created ?> Expected result: ---------------- Results from the echo in __set Actual result: -------------- The result of the print_r shows that the property is created, but id did not pass the __set -- Edit bug report at http://bugs.php.net/?id=24608&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24608&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24608&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24608&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24608&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24608&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24608&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24608&r=support Expected behavior: http://bugs.php.net/fix.php?id=24608&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24608&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24608&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24608&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24608&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24608&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24608&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24608&r=gnused