xref: /PHP-5.3/ext/simplexml/tests/bug37076_1.phpt (revision 9d33b167)
1--TEST--
2Bug #37076 (SimpleXML ignores .=) (appending to unnamed attribute)
3--SKIPIF--
4<?php if (!extension_loaded("simplexml")) print "skip"; ?>
5--FILE--
6<?php
7$xml = simplexml_load_string("<root><foo /></root>");
8$xml->{""} .= "bar";
9print $xml->asXML();
10?>
11===DONE===
12--EXPECTF--
13Warning: main(): Cannot write or create unnamed element in %s on line %d
14
15Warning: main(): Cannot write or create unnamed element in %s on line %d
16<?xml version="1.0"?>
17<root><foo/></root>
18===DONE===
19