diff options
author | Marcus Boerger <helly@php.net> | 2006-04-10 23:19:23 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2006-04-10 23:19:23 +0000 |
commit | c4b16064660c926175c11eeab4699288e3d397ea (patch) | |
tree | dbd44c0e8237a18af94db8a2f446d2fab8ae5936 /ext | |
parent | 509c9d44e2c2140c4f7bbd4038d8a695dd30f8c3 (diff) | |
download | php-git-c4b16064660c926175c11eeab4699288e3d397ea.tar.gz |
- Coverity issue 59
Diffstat (limited to 'ext')
-rw-r--r-- | ext/simplexml/simplexml.c | 3 |
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; |