mirror of
https://github.com/php/php-src.git
synced 2024-10-22 08:47:29 +00:00
17 lines
413 B
PHP
17 lines
413 B
PHP
--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===
|