From: Joe Watkins Date: Thu, 28 Apr 2016 14:40:28 +0000 (+0100) Subject: variable used out of scope X-Git-Tag: php-7.0.7RC1~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e27a43b7be877b9b27addf67f7dc2d1f6d74d3a1;p=php variable used out of scope --- diff --git a/ext/spl/spl_fixedarray.c b/ext/spl/spl_fixedarray.c index 9bbda05829..e04abf77ea 100644 --- a/ext/spl/spl_fixedarray.c +++ b/ext/spl/spl_fixedarray.c @@ -410,11 +410,11 @@ static inline void spl_fixedarray_object_write_dimension_helper(spl_fixedarray_o static void spl_fixedarray_object_write_dimension(zval *object, zval *offset, zval *value) /* {{{ */ { spl_fixedarray_object *intern; + zval tmp; intern = Z_SPLFIXEDARRAY_P(object); if (intern->fptr_offset_set) { - zval tmp; if (!offset) { ZVAL_NULL(&tmp); offset = &tmp;