|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37076 SimpleXML ignores .=
Submitted: 2006-04-14 00:30 UTC Modified: 2008-01-22 20:42 UTC
Avg. Score:3.8 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:0 (0.0%)
From: Assigned: helly (profile)
Status: Closed Package: SimpleXML related
PHP Version: 5.2.* OS: *
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:
New email:
PHP Version: OS:


 [2006-04-14 00:30 UTC]
Simplexml doesn't respect .=

Reproduce code:
$xml = simplexml_load_string("<root><foo /></root>");
$xml->foo = "foo";
$xml->foo .= "bar";
print $xml->asXML();

Expected result:
<?xml version="1.0"?>

Actual result:
<?xml version="1.0"?>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-14 10:58 UTC]
This cannot work in 5.1. Please test HEAD and assign to me if it is not working in HEAD or close if it does.
 [2006-04-14 12:03 UTC]
Reproduced in HEAD
It does however work in 5.0..
 [2006-05-27 01:12 UTC]
Please try using this CVS snapshot:
For Windows:

Can you please write a test case?
 [2006-05-27 10:40 UTC]
(fails still)
 [2007-08-15 16:23 UTC]
(Updated version).

Marcus: Still doesn't work.. :)
 [2008-01-22 20:42 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 15:01:32 2024 UTC