Fixed bug #29594 (Use PHP's own tmpfile() implementation).

This commit is contained in:
Ilia Alshanetsky 2004-08-16 23:07:42 +00:00
parent b9310261d7
commit 4d360ead0c

View File

@ -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;