mirror of
https://github.com/php/php-src.git
synced 2024-11-28 04:14:26 +08:00
Fixed bug #29594 (Use PHP's own tmpfile() implementation).
This commit is contained in:
parent
b9310261d7
commit
4d360ead0c
@ -35,6 +35,7 @@
|
||||
#include "SAPI.h"
|
||||
#include "php_gd.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "php_open_temporary_file.h"
|
||||
|
||||
#if HAVE_SYS_WAIT_H
|
||||
# include <sys/wait.h>
|
||||
@ -1767,7 +1768,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char
|
||||
FILE *tmp;
|
||||
char buf[4096];
|
||||
|
||||
tmp = tmpfile();
|
||||
tmp = php_open_temporary_file("", "", NULL TSRMLS_CC);
|
||||
if (tmp == NULL) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to open temporary file");
|
||||
RETURN_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user