#36978 [Bgs]: PHP Crashes and issues a windows message box
| From: | thomas dot ene at gmail dot com | Date: | Wed, 05 Apr 2006 14:07:51 +0000 |
| Subject: | #36978 [Bgs]: PHP Crashes and issues a windows message box | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95343@lists.php.net to get a copy of this message | ||
ID: 36978
User updated by: thomas dot ene at gmail dot com
Reported By: thomas dot ene at gmail dot com
Status: Bogus
Bug Type: Reproducible crash
Operating System: Windows
PHP Version: 5.1.2
New Comment:
Yes but showing a windows popup isn't normal behaviour either.
Anyway, thanks for the information. The issue about increment/decrement
operators wasn't commented out in the standard documentation.
Thank you and have a splendid day.
Previous Comments:
------------------------------------------------------------------------
[2006-04-05 06:30:42] mike@php.net
A "Fatal Error" ain't a crash.
You can't use in/decrement operators on overloaded properties.
------------------------------------------------------------------------
[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