From: Ilia Alshanetsky Date: Mon, 16 Aug 2004 23:08:56 +0000 (+0000) Subject: MFH: Fixed bug #29594 (Use PHP's own tmpfile() implementation). X-Git-Tag: php-5.0.2RC1~124 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40645cc0a691d703873dc7d1565f86d5c804f675;p=php MFH: Fixed bug #29594 (Use PHP's own tmpfile() implementation). --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 8694e471af..f00e46f65a 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -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 @@ -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;