|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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: Sun Apr 14 23:01:27 2024 UTC