#37076 [Asn]: SimpleXML ignores .=
| From: | bjori@php.net | Date: | Wed, 15 Aug 2007 16:23:38 +0000 |
| Subject: | #37076 [Asn]: SimpleXML ignores .= | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116126@lists.php.net to get a copy of this message | ||
ID: 37076
Updated by: bjori@php.net
Reported By: bjori@php.net
Status: Assigned
Bug Type: SimpleXML related
Operating System: *
-PHP Version: 6, 5.2.*
+PHP Version: 5CVS-2007-08-15 (CVS)
Assigned To: helly
New Comment:
(Updated version).
Marcus: Still doesn't work.. :)
Previous Comments:
------------------------------------------------------------------------
[2006-05-27 10:40:24] bjori@php.net
http://php.is/bugs/37076/bug37076.phpt
(fails still)
------------------------------------------------------------------------
[2006-05-27 01:12:01] 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-04-14 12:03:29] bjori@php.net
Reproduced in HEAD
It does however work in 5.0..
------------------------------------------------------------------------
[2006-04-14 10:58:40] 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 00:30:30] 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>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37076&edit=1