1--TEST-- 2Bug #72971: SimpleXML isset/unset do not respect namespace 3--EXTENSIONS-- 4simplexml 5--FILE-- 6<?php 7 8$xml = new SimpleXMLElement('<root xmlns:ns="ns"><foo>bar</foo><ns:foo>ns:bar</ns:foo><ns:foo2>ns:bar2</ns:foo2></root>'); 9var_dump(isset($xml->foo2)); 10unset($xml->foo); 11var_dump($xml->children('ns')); 12 13?> 14--EXPECT-- 15bool(false) 16object(SimpleXMLElement)#2 (2) { 17 ["foo"]=> 18 string(6) "ns:bar" 19 ["foo2"]=> 20 string(7) "ns:bar2" 21} 22