php-src/ext/simplexml/tests/bug37076_1.phpt

14 lines
265 B
Plaintext
Raw Normal View History

--TEST--
Bug #37076 (SimpleXML ignores .=) (appending to unnamed attribute)
--FILE--
<?php
$xml = simplexml_load_string("<root><foo /></root>");
$xml->{""} .= "bar";
print $xml->asXML();
?>
===DONE===
--EXPECT--
<?xml version="1.0"?>
<root><foo/></root>
===DONE===