#36978 [Opn->Bgs]: PHP Crashes and issues a windows message box

From: Date: Wed, 05 Apr 2006 06:30:42 +0000
Subject: #36978 [Opn->Bgs]: PHP Crashes and issues a windows message box
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95327@lists.php.net to get a copy of this message
ID: 36978 Updated by: mike@php.net 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

« previous php.bugs (#95327) next »