com php-src: Fixed handling of "static" variables: Zend/zend_ compile.c
| From: | Dmitry Stogov | Date: | Tue, 25 Feb 2014 19:56:09 +0000 |
| Subject: | com php-src: Fixed handling of "static" variables: Zend/zend_ compile.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77910@lists.php.net to get a copy of this message | ||
Commit: e4b5848859eccafdb9949186177c1f536132f754
Author: Dmitry Stogov <dmitry@zend.com> Tue, 25 Feb 2014 23:56:09 +0400
Parents: 329a576f39ba8bf759d44007f185986669b3901a
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e4b5848859eccafdb9949186177c1f536132f754
Log:
Fixed handling of "static" variables
Changed paths:
M Zend/zend_compile.c
Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index aff6cad..66410d4 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -4594,8 +4594,8 @@ ZEND_API int do_bind_function(const zend_op_array *op_array, zend_op *opline,
Ha
}
return FAILURE;
} else {
- (*new_function->op_array.refcount)++;
- new_function->op_array.static_variables = NULL; /* NULL out the unbound function */
+ (*function->op_array.refcount)++;
+ function->op_array.static_variables = NULL; /* NULL out the unbound function */
return SUCCESS;
}
}