Skip to content

Commit c47d357

Browse files
dunglasiluuu1994
authored andcommitted
Set SG(rfc1867_uploaded_files) to null after destroy
Closes GH-14499
1 parent bc558bf commit c47d357

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main/rfc1867.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ PHPAPI void destroy_uploaded_files_hash(void) /* {{{ */
197197
} ZEND_HASH_FOREACH_END();
198198
zend_hash_destroy(SG(rfc1867_uploaded_files));
199199
FREE_HASHTABLE(SG(rfc1867_uploaded_files));
200+
SG(rfc1867_uploaded_files) = NULL;
200201
}
201202
/* }}} */
202203

@@ -1157,7 +1158,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
11571158
register_http_post_files_variable(lbuf, s, &PG(http_globals)[TRACK_VARS_FILES], 0);
11581159
s = NULL;
11591160

1160-
/* Add full path of supplied file for folder uploads via
1161+
/* Add full path of supplied file for folder uploads via
11611162
* <input type="file" name="files" multiple webkitdirectory>
11621163
*/
11631164
/* Add $foo[full_path] */

0 commit comments

Comments
 (0)