mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
6c4cb4c079
- Introduce php_open_temporary_file(), in place of tempnam(). Still needs testing under UNIX (mkstemp()), works reliably under Windows now. - Reimplement the mechanism for unlinking uploaded files at the end of the request (was it ever tested?). Files moved with move_uploaded_file() will not be unlink()'d again, to avoid (albeit very unlikely) race conditions.
16 lines
310 B
C
16 lines
310 B
C
#ifndef RFC1867_H
|
|
#define RFC1867_H
|
|
|
|
#include "SAPI.h"
|
|
|
|
#define MULTIPART_CONTENT_TYPE "multipart/form-data"
|
|
|
|
SAPI_POST_READER_FUNC(rfc1867_post_reader);
|
|
SAPI_POST_HANDLER_FUNC(rfc1867_post_handler);
|
|
|
|
#define FILE_UPLOAD_INPUT_BUFFER_SIZE 8192
|
|
|
|
void destroy_uploaded_files_hash(SLS_D);
|
|
|
|
#endif /* RFC1867_H */
|