|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39007 Crash while writing to nonexistent element
Submitted: 2006-10-01 10:39 UTC Modified: 2006-10-01 15:17 UTC
From: ladislav dot prosek at matfyz dot cz Assigned:
Status: Not a bug Package: SimpleXML related
PHP Version: 5.1.6 OS: Windows XP Pro SP2
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: ladislav dot prosek at matfyz dot cz
New email:
PHP Version: OS:


 [2006-10-01 10:39 UTC] ladislav dot prosek at matfyz dot cz
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:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-01 14:01 UTC]
Please try using this CVS snapshot:
For Windows:

Can't reproduce
 [2006-10-01 14:20 UTC] ladislav dot prosek at matfyz dot cz
Works OK with the snapshot. The "Node no longer exists" warning seems quite appropriate. Thanks and sorry for reporting something that is already fixed.
 [2006-10-01 15:17 UTC]
Already fixed -> report was bogus
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 14:01:33 2024 UTC