Browse Source

fix segfault if xpath expression string is invalid

PEAR_1_4DEV
Rob Richards 23 years ago
parent
commit
8f489130bf
  1. 3
      ext/dom/xpath.c

3
ext/dom/xpath.c

@ -197,6 +197,9 @@ PHP_FUNCTION(dom_xpath_query)
ctxp->nsNr = 0;
}
if (! xpathobjp) {
RETURN_FALSE;
}
if (xpathobjp->type == XPATH_NODESET) {
int i;
xmlNodeSetPtr nodesetp;

Loading…
Cancel
Save