summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-04-10 23:19:23 +0000
committerMarcus Boerger <helly@php.net>2006-04-10 23:19:23 +0000
commitc4b16064660c926175c11eeab4699288e3d397ea (patch)
treedbd44c0e8237a18af94db8a2f446d2fab8ae5936 /ext
parent509c9d44e2c2140c4f7bbd4038d8a695dd30f8c3 (diff)
downloadphp-git-c4b16064660c926175c11eeab4699288e3d397ea.tar.gz
- Coverity issue 59
Diffstat (limited to 'ext')
-rw-r--r--ext/simplexml/simplexml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index d6e75004eb..2735dfcfdc 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -2055,6 +2055,9 @@ static int php_sxe_iterator_current_key(zend_object_iterator *iter, zstr *str_ke
if (intern != NULL && intern->node != NULL) {
curnode = (xmlNodePtr)((php_libxml_node_ptr *)intern->node)->node;
}
+ if (!curnode) {
+ return HASH_KEY_NON_EXISTANT;
+ }
if (UG(unicode)) {
UErrorCode status = U_ZERO_ERROR;