diff options
author | Felipe Pena <felipe@php.net> | 2010-08-08 23:56:29 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-08-08 23:56:29 +0000 |
commit | 904b9282fee046c5d224ef096540d0d817afcd38 (patch) | |
tree | 972b229f575d565064921f4bc088848de0f92130 /ext | |
parent | 7ab1a74f499bd889cb2eee69d1d18308c7f24f79 (diff) | |
download | php-git-904b9282fee046c5d224ef096540d0d817afcd38.tar.gz |
- Fixed bug #50481 (Storing many SPLFixedArray in an array crashes)
Diffstat (limited to 'ext')
-rw-r--r-- | ext/spl/spl_fixedarray.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/spl/spl_fixedarray.c b/ext/spl/spl_fixedarray.c index 783c854e5e..d7dd244298 100644 --- a/ext/spl/spl_fixedarray.c +++ b/ext/spl/spl_fixedarray.c @@ -158,6 +158,9 @@ static HashTable* spl_fixedarray_object_get_properties(zval *obj TSRMLS_DC) /* { zend_hash_index_update(intern->std.properties, i, (void *)&intern->array->elements[i], sizeof(zval *), NULL); Z_ADDREF_P(intern->array->elements[i]); } else { + if (GC_G(gc_active)) { + return NULL; + } zend_hash_index_update(intern->std.properties, i, (void *)&EG(uninitialized_zval_ptr), sizeof(zval *), NULL); Z_ADDREF_P(EG(uninitialized_zval_ptr)); } |