mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
For rationale, see #6787 Extensions migrated in part 4: * simplexml * skeleton * soap * spl * sqlite3 * sysvmsg * sysvsem * tidy - also removed a check for an ancient dependency version
28 lines
441 B
PHP
28 lines
441 B
PHP
--TEST--
|
|
SimpleXML: concatenating attributes
|
|
--EXTENSIONS--
|
|
simplexml
|
|
--FILE--
|
|
<?php
|
|
$xml =<<<EOF
|
|
<people>
|
|
<person name="Foo"></person>
|
|
</people>
|
|
EOF;
|
|
|
|
$people = simplexml_load_string($xml);
|
|
var_dump($people->person['name']);
|
|
$people->person['name'] .= 'Bar';
|
|
var_dump($people->person['name']);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
object(SimpleXMLElement)#%d (1) {
|
|
[0]=>
|
|
string(3) "Foo"
|
|
}
|
|
object(SimpleXMLElement)#%d (1) {
|
|
[0]=>
|
|
string(6) "FooBar"
|
|
}
|