From e4b5848859eccafdb9949186177c1f536132f754 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 25 Feb 2014 23:56:09 +0400 Subject: [PATCH] Fixed handling of "static" variables --- Zend/zend_compile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index aff6cad01ce..66410d41d33 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; } }