From: Dmitry Stogov Date: Fri, 12 Aug 2005 12:14:31 +0000 (+0000) Subject: Fixed SIGSEGV X-Git-Tag: PRE_NEW_OCI8_EXTENSION~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f39c77dda06542f5bb42ca8144f123a26a0b201a;p=php Fixed SIGSEGV --- diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index 1dc9f21f1e..33d225284f 100755 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -692,7 +692,7 @@ static int spl_array_skip_protected(spl_array_object *intern TSRMLS_DC) /* {{{ * if (Z_TYPE_P(intern->array) == IS_OBJECT) { do { - if (zend_hash_get_current_key_ex(aht, &string_key, &string_length, &num_key, 0, &intern->pos) == UG(unicode)?HASH_KEY_IS_UNICODE:HASH_KEY_IS_STRING) { + if (zend_hash_get_current_key_ex(aht, &string_key, &string_length, &num_key, 0, &intern->pos) == (UG(unicode)?HASH_KEY_IS_UNICODE:HASH_KEY_IS_STRING)) { if (!string_length || ((UG(unicode) && ((UChar*)string_key)[0]) || (!UG(unicode) && string_key[0]))) {