]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #29594 (Use PHP's own tmpfile() implementation).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 16 Aug 2004 23:08:54 +0000 (23:08 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 16 Aug 2004 23:08:54 +0000 (23:08 +0000)
NEWS
ext/gd/gd.c

diff --git a/NEWS b/NEWS
index 640e665aa895ee4c4fb0ed87bf49c7f42ddcc358..b812fd21cbf8005c0152feb377add8ae6f611129 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ PHP 4                                                                      NEWS
 ?? ??? 2004, Version 4.3.9
 - Fixed a file-descriptor leak with phpinfo() and other 'special' URLs (Zeev)
 - Fixed bug #29599 (domxml_error segfaults another apache module). (Rob)
+- Fixed bug #29594 (Use PHP's own tmpfile() implementation). (Ilia)
 
 11 Aug 2004, Version 4.3.9RC1
 - Rewritten UNIX and Windows install help files. (Documentation Team)
index 21b78374baa4f398dd55bd0e385bb203e2b1faad..803c0124d55f680859961457cca0687154f13655 100644 (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>
@@ -1663,7 +1664,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;