From 82385b31b878fe8e39a9ea4e4606635c65262994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Fri, 7 Jun 2024 18:09:23 +0200 Subject: [PATCH] fix: set SG(rfc1867_uploaded_files) to null after destroy --- main/rfc1867.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/rfc1867.c b/main/rfc1867.c index 2f691682dbbe..919843928b6a 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -197,6 +197,7 @@ PHPAPI void destroy_uploaded_files_hash(void) /* {{{ */ } ZEND_HASH_FOREACH_END(); zend_hash_destroy(SG(rfc1867_uploaded_files)); FREE_HASHTABLE(SG(rfc1867_uploaded_files)); + SG(rfc1867_uploaded_files) = NULL; } /* }}} */ @@ -1157,7 +1158,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */ register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0); s = NULL; - /* Add full path of supplied file for folder uploads via + /* Add full path of supplied file for folder uploads via * */ /* Add $foo[full_path] */