Browse Source

Fixed SIGSEGV

migration/RELEASE_1_0_0
Dmitry Stogov 21 years ago
parent
commit
f39c77dda0
  1. 2
      ext/spl/spl_array.c

2
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]))) {

Loading…
Cancel
Save