From f39c77dda06542f5bb42ca8144f123a26a0b201a Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 12 Aug 2005 12:14:31 +0000 Subject: [PATCH] Fixed SIGSEGV --- ext/spl/spl_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]))) { -- 2.50.1