mirror of
https://github.com/php/php-src.git
synced 2024-10-02 23:36:16 +00:00
17 lines
413 B
Plaintext
17 lines
413 B
Plaintext
|
--TEST--
|
||
|
Bug #37076 (SimpleXML ignores .=) (appending to unnamed attribute)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$xml = simplexml_load_string("<root><foo /></root>");
|
||
|
$xml->{""} .= "bar";
|
||
|
print $xml->asXML();
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECTF--
|
||
|
Warning: main(): Cannot write or create unnamed element in %s on line %d
|
||
|
|
||
|
Warning: main(): Cannot write or create unnamed element in %s on line %d
|
||
|
<?xml version="1.0"?>
|
||
|
<root><foo/></root>
|
||
|
===DONE===
|