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
22 lines
441 B
PHP
22 lines
441 B
PHP
--TEST--
|
|
Bug #72971: SimpleXML isset/unset do not respect namespace
|
|
--EXTENSIONS--
|
|
simplexml
|
|
--FILE--
|
|
<?php
|
|
|
|
$xml = new SimpleXMLElement('<root xmlns:ns="ns"><foo>bar</foo><ns:foo>ns:bar</ns:foo><ns:foo2>ns:bar2</ns:foo2></root>');
|
|
var_dump(isset($xml->foo2));
|
|
unset($xml->foo);
|
|
var_dump($xml->children('ns'));
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
object(SimpleXMLElement)#2 (2) {
|
|
["foo"]=>
|
|
string(6) "ns:bar"
|
|
["foo2"]=>
|
|
string(7) "ns:bar2"
|
|
}
|