ID: 36978 Updated by: [EMAIL PROTECTED] Reported By: thomas dot ene at gmail dot com -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: Windows PHP Version: 5.1.2 New Comment:
A "Fatal Error" ain't a crash. You can't use in/decrement operators on overloaded properties. Previous Comments: ------------------------------------------------------------------------ [2006-04-04 23:06:09] thomas dot ene at gmail dot com Description: ------------ The code below produces: Fatal error: Couldn't execute method demo::__set in Unknown on line 0 and also a windows message box. Reproduce code: --------------- <?php class base { function __get($key) { throw new Exception(); } function __set($key, $val) { } } class demo extends base { function demo() { } function play() { $this->a++; } } $obj = new demo(); $obj->play(); ?> Expected result: ---------------- It should set the property a to 1 in the demo class Actual result: -------------- The code below produces: Fatal error: Couldn't execute method demo::__set in Unknown on line 0 and also a windows message box. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36978&edit=1