Skip to content

Commit

Permalink
Set SG(rfc1867_uploaded_files) to null after destroy
Browse files Browse the repository at this point in the history
Closes GH-14499
  • Loading branch information
dunglas authored and iluuu1994 committed Jun 10, 2024
1 parent bc558bf commit c47d357
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main/rfc1867.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
/* }}} */

Expand Down Expand Up @@ -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
* <input type="file" name="files" multiple webkitdirectory>
*/
/* Add $foo[full_path] */
Expand Down

0 comments on commit c47d357

Please sign in to comment.