Created
August 24, 2021 10:16
-
-
Save dstogov/4ac834f934ff2a0e446b5a24dba913da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c | |
index d388e8184a..d089677287 100644 | |
--- a/Zend/zend_closures.c | |
+++ b/Zend/zend_closures.c | |
@@ -478,6 +478,7 @@ static void zend_closure_free_storage(zend_object *object) /* {{{ */ | |
/* We don't own the static variables of fake closures. */ | |
if (!(closure->func.op_array.fn_flags & ZEND_ACC_FAKE_CLOSURE)) { | |
zend_destroy_static_vars(&closure->func.op_array); | |
+ closure->func.op_array.static_variables = NULL; | |
} | |
destroy_op_array(&closure->func.op_array); | |
} else if (closure->orig_internal_handler == zend_closure_call_magic) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment