php.net |  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
Votes:4
Avg. Score:3.8 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:0 (0.0%)
From: bjori@php.net Assigned: helly (profile)
Status: Closed Package: SimpleXML related
PHP Version: 5.2.* OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
9 + 34 = ?
Subscribe to this entry?

 
 [2006-04-14 00:30 UTC] bjori@php.net
Description:
------------
Simplexml doesn't respect .=

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

Expected result:
----------------
<?xml version="1.0"?>
<root><foo>foobar</foo></root>

Actual result:
--------------
<?xml version="1.0"?>
<root><foo>foo</foo></root>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-14 10:58 UTC] helly@php.net
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] bjori@php.net
Reproduced in HEAD
It does however work in 5.0..
 [2006-05-27 01:12 UTC] helly@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 you please write a test case?
 [2006-05-27 10:40 UTC] bjori@php.net
http://php.is/bugs/37076/bug37076.phpt
(fails still)
 [2007-08-15 16:23 UTC] bjori@php.net
(Updated version).

Marcus: Still doesn't work.. :)
 [2008-01-22 20:42 UTC] helly@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 00:01:30 2024 UTC