#37076 [Opn->Fbk]: SimpleXML ignores .=

From: Date: Fri, 14 Apr 2006 10:58:40 +0000
Subject: #37076 [Opn->Fbk]: SimpleXML ignores .=
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95781@lists.php.net to get a copy of this message
 ID:               37076
 Updated by:       helly@php.net
 Reported By:      bjori@php.net
-Status:           Open
+Status:           Feedback
 Bug Type:         SimpleXML related
 Operating System: FreeBSD
 PHP Version:      5CVS-2006-04-14 (CVS)
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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


Thread (8 messages)

« previous php.bugs (#95781) next »