com php-src: variable used out of scope: ext/spl/spl_fixedarr ay.c
| From: | Joe Watkins | Date: | Thu, 28 Apr 2016 14:40:28 +0000 |
| Subject: | com php-src: variable used out of scope: ext/spl/spl_fixedarr ay.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91911@lists.php.net to get a copy of this message | ||
Commit: e27a43b7be877b9b27addf67f7dc2d1f6d74d3a1
Author: Joe Watkins <krakjoe@php.net> Thu, 28 Apr 2016 15:40:28 +0100
Parents: 759271ff34f45cd7ec2264c7390791582d3a6226
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e27a43b7be877b9b27addf67f7dc2d1f6d74d3a1
Log:
variable used out of scope
Changed paths:
M ext/spl/spl_fixedarray.c
Diff:
diff --git a/ext/spl/spl_fixedarray.c b/ext/spl/spl_fixedarray.c
index 9bbda05..e04abf7 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;