diff options
| author | Brian Shire <shire@php.net> | 2006-12-17 20:09:48 +0000 |
|---|---|---|
| committer | Brian Shire <shire@php.net> | 2006-12-17 20:09:48 +0000 |
| commit | 5bf3df531fd8c07b0b121fcc7b3344f55b8e87d3 (patch) | |
| tree | 9ec116896f05e4f9512f8e05016738a6bf36b974 /ext/standard/array.c | |
| parent | e8bc39d95defbd9bf8b3983fc43b519658245334 (diff) | |
| download | php-git-5bf3df531fd8c07b0b121fcc7b3344f55b8e87d3.tar.gz | |
Fixed bug #30074
extract with EXTR_REFS was setting EG(unitialized_zval_ptr)->is_ref=1, affecting subsequent usage
Added test
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 9aa3ccdac8..961a6860d9 100644 --- a/ext/standard/array.c +++ b/ext/standard/array.c @@ -1436,7 +1436,7 @@ PHP_FUNCTION(extract) *orig_var = *entry; } else { - if ((*var_array)->refcount > 1) { + if ((*var_array)->refcount > 1 || *entry == EG(uninitialized_zval_ptr)) { SEPARATE_ZVAL_TO_MAKE_IS_REF(entry); } else { (*entry)->is_ref = 1; |
