diff options
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r-- | ext/domxml/php_domxml.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index aa63840417..d1a3042a11 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -2432,6 +2432,9 @@ PHP_FUNCTION(xmltree) Initializing XPath environment */ PHP_FUNCTION(xpath_init) { + if (zend_parse_parameters(ZEND_NUM_ARGS(), "") == FAILURE) + return; + xmlXPathInit(); RETURN_TRUE; } |