diff options
| author | Veres Lajos <vlajos@gmail.com> | 2013-07-08 22:09:06 +0100 |
|---|---|---|
| committer | Stanislav Malyshev <stas@php.net> | 2013-07-21 20:09:53 -0700 |
| commit | 4749457a498828e9f7919401889a991b8a9b94b5 (patch) | |
| tree | e3515ab9366020e2b422a370033c0b4f2b91d11f /ext/standard/array.c | |
| parent | 29281dee491d675185ce155e7956d1617d551c4a (diff) | |
| download | php-git-4749457a498828e9f7919401889a991b8a9b94b5.tar.gz | |
HASH_KEY_NON_EXISTANT fix
Diffstat (limited to 'ext/standard/array.c')
| -rw-r--r-- | ext/standard/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c index 99dbb538ea..22873862f7 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -4017,7 +4017,7 @@ PHP_FUNCTION(array_rand) /* We can't use zend_hash_index_find() because the array may have string keys or gaps. */ zend_hash_internal_pointer_reset_ex(Z_ARRVAL_P(input), &pos); - while (num_req && (key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(input), &string_key, &string_key_len, &num_key, 0, &pos)) != HASH_KEY_NON_EXISTANT) { + while (num_req && (key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(input), &string_key, &string_key_len, &num_key, 0, &pos)) != HASH_KEY_NON_EXISTENT) { randval = php_rand(TSRMLS_C); |
