summaryrefslogtreecommitdiff
path: root/ext/simplexml/php_simplexml_exports.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/simplexml/php_simplexml_exports.h')
-rw-r--r--ext/simplexml/php_simplexml_exports.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/simplexml/php_simplexml_exports.h b/ext/simplexml/php_simplexml_exports.h
index 748a59317d..13f5e4fb33 100644
--- a/ext/simplexml/php_simplexml_exports.h
+++ b/ext/simplexml/php_simplexml_exports.h
@@ -31,7 +31,7 @@
__n = (__s)->node->node; \
} else { \
__n = NULL; \
- php_error_docref(NULL, E_WARNING, "Node no longer exists"); \
+ zend_throw_error(NULL, "SimpleXMLElement is not properly initialized"); \
} \
}