php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36978 PHP Crashes and issues a windows message box
Submitted: 2006-04-04 23:06 UTC Modified: 2006-04-05 14:15 UTC
From: thomas dot ene at gmail dot com Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.1.2 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: thomas dot ene at gmail dot com
New email:
PHP Version: OS:

 

 [2006-04-04 23:06 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-05 06:30 UTC] mike@php.net
A "Fatal Error" ain't a crash.
You can't use in/decrement operators on overloaded properties.

 [2006-04-05 14:07 UTC] thomas dot ene at gmail dot com
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.
 [2006-04-05 14:15 UTC] mike@php.net
If you really experience a crash, we'd need a backtrace at least.

Thanks
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 23:01:33 2025 UTC