summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-04-28 15:40:59 +0100
committerJoe Watkins <krakjoe@php.net>2016-04-28 15:40:59 +0100
commitde019858c392355c31dce6db0ae3f0abaabb3451 (patch)
treec42de360330dfed32d337d02a3928fdbb3a33f4f /ext/spl
parent747a482b9c011b33d3e61823d3291c2258eaec9e (diff)
parente27a43b7be877b9b27addf67f7dc2d1f6d74d3a1 (diff)
downloadphp-git-de019858c392355c31dce6db0ae3f0abaabb3451.tar.gz
Merge branch 'PHP-7.0'
* PHP-7.0: variable used out of scope
Diffstat (limited to 'ext/spl')
-rw-r--r--ext/spl/spl_fixedarray.c2
1 files changed, 1 insertions, 1 deletions
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;