1 2 3 4 5 6 7 8 9
--TEST-- Testing getDocNamespaces() with invalid XML --FILE-- <?php $xml = @new SimpleXMLElement("X",1); var_dump($xml->getDocNamespaces()); ?> --EXPECTF-- bool(false)