]> granicus.if.org Git - php/commitdiff
Fixed handling of "static" variables
authorDmitry Stogov <dmitry@zend.com>
Tue, 25 Feb 2014 19:56:09 +0000 (23:56 +0400)
committerDmitry Stogov <dmitry@zend.com>
Tue, 25 Feb 2014 19:56:09 +0000 (23:56 +0400)
Zend/zend_compile.c

index aff6cad01ce54d6f037ff9719dd892cbcf968676..66410d41d336c28fec433303ebb9c9fb92cf6af8 100644 (file)
@@ -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;
        }
 }