diff options
| author | Xinchen Hui <laruence@gmail.com> | 2018-05-23 14:46:01 +0800 |
|---|---|---|
| committer | Xinchen Hui <laruence@gmail.com> | 2018-05-23 14:46:01 +0800 |
| commit | dc461d6f561dd7e2da0f9664afc75b740ef3dc44 (patch) | |
| tree | a3e46957c0440e3af8633e9be81e25a120594db1 /ext/spl/spl_array.c | |
| parent | a231860b026baf8a2dfd34852c0cc196e7c7ebfb (diff) | |
| parent | 8f221bdec0e1a81ef4471f926cf0b0f23724204c (diff) | |
| download | php-git-dc461d6f561dd7e2da0f9664afc75b740ef3dc44.tar.gz | |
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #76367 (NoRewindIterator segfault 11)
Diffstat (limited to 'ext/spl/spl_array.c')
| -rw-r--r-- | ext/spl/spl_array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_array.c b/ext/spl/spl_array.c index bc883b02e6..d34902ce80 100644 --- a/ext/spl/spl_array.c +++ b/ext/spl/spl_array.c @@ -1039,7 +1039,7 @@ static zval *spl_array_it_get_current_data(zend_object_iterator *iter) /* {{{ */ return zend_user_it_get_current_data(iter); } else { zval *data = zend_hash_get_current_data_ex(aht, spl_array_get_pos_ptr(aht, object)); - if (Z_TYPE_P(data) == IS_INDIRECT) { + if (data && Z_TYPE_P(data) == IS_INDIRECT) { data = Z_INDIRECT_P(data); } return data; |
