}
sxe = Z_SXEOBJ_P(ZEND_THIS);
+ if (!sxe->document) {
+ zend_throw_error(NULL, "SimpleXMLElement is not properly initialized");
+ RETURN_THROWS();
+ }
+
if (!sxe->xpath) {
sxe->xpath = xmlXPathNewContext((xmlDocPtr) sxe->document->ptr);
}
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
+try {
+ var_dump($sxe->registerXPathNamespace('', ''));
+} catch (Error $e) {
+ echo $e->getMessage(), "\n";
+}
try {
var_dump($sxe->foo);
} catch (Error $e) {
SimpleXMLElement is not properly initialized
SimpleXMLElement is not properly initialized
SimpleXMLElement is not properly initialized
+SimpleXMLElement is not properly initialized