#39007 [Fbk->Opn]: Crash while writing to nonexistent element
| From: | ladislav dot prosek at matfyz dot cz | Date: | Sun, 01 Oct 2006 14:20:34 +0000 |
| Subject: | #39007 [Fbk->Opn]: Crash while writing to nonexistent element | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102930@lists.php.net to get a copy of this message | ||
ID: 39007
User updated by: ladislav dot prosek at matfyz dot cz
Reported By: ladislav dot prosek at matfyz dot cz
-Status: Feedback
+Status: Open
Bug Type: SimpleXML related
Operating System: Windows XP Pro SP2
PHP Version: 5.1.6
New Comment:
Works OK with the snapshot. The "Node no longer exists" warning seems
quite appropriate. Thanks and sorry for reporting something that is
already fixed.
Previous Comments:
------------------------------------------------------------------------
[2006-10-01 14:01:49] bjori@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Can't reproduce
------------------------------------------------------------------------
[2006-10-01 10:39:35] ladislav dot prosek at matfyz dot cz
Description:
------------
The following piece of code crashes PHP CLI.
Reproduce code:
---------------
<?
$x = new SimpleXMLElement("<root/>");
$y = $x->whatever;
$y->z["a"] = "b";
?>
Expected result:
----------------
You decide ;)
Actual result:
--------------
* CRASH *
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39007&edit=1