]> granicus.if.org Git - php/commitdiff
Fixed SIGSEGV
authorDmitry Stogov <dmitry@php.net>
Fri, 12 Aug 2005 12:14:31 +0000 (12:14 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 12 Aug 2005 12:14:31 +0000 (12:14 +0000)
ext/spl/spl_array.c

index 1dc9f21f1e4f8d336ff93a91800dbad386bbbcda..33d225284f4789e10be251ded0e1c5a020eefa6c 100755 (executable)
@@ -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]))) {