summaryrefslogtreecommitdiff
path: root/ext/dom/xpath.c
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2004-01-20 11:35:32 +0000
committerRob Richards <rrichards@php.net>2004-01-20 11:35:32 +0000
commita4815f7c8e9e7a5f5ccd9850402afc434f1d4353 (patch)
tree4f5589ac0c1b3889d0a080d5281ca76c52ce3e8b /ext/dom/xpath.c
parent42110742b74c50779564a871d6e1211bea9203ef (diff)
downloadphp-git-a4815f7c8e9e7a5f5ccd9850402afc434f1d4353.tar.gz
Warn when empty string supplied to load methods (by Pierre-Alain)
Fix refcount on xpath iterators xpath_query should return nodelist even when empty
Diffstat (limited to 'ext/dom/xpath.c')
-rw-r--r--ext/dom/xpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/xpath.c b/ext/dom/xpath.c
index 76767fa1f7..28b118e50c 100644
--- a/ext/dom/xpath.c
+++ b/ext/dom/xpath.c
@@ -252,7 +252,7 @@ PHP_FUNCTION(dom_xpath_query)
add_next_index_zval(retval, child);
}
} else {
- RETURN_FALSE;
+ retval = NULL;
}
php_dom_create_interator(return_value, DOM_NODELIST TSRMLS_CC);