iliaa Mon Aug 16 19:08:56 2004 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/gd gd.c Log: MFH: Fixed bug #29594 (Use PHP's own tmpfile() implementation). http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.294.2.2&r2=1.294.2.3&ty=u Index: php-src/ext/gd/gd.c diff -u php-src/ext/gd/gd.c:1.294.2.2 php-src/ext/gd/gd.c:1.294.2.3 --- php-src/ext/gd/gd.c:1.294.2.2 Mon Jul 26 20:27:07 2004 +++ php-src/ext/gd/gd.c Mon Aug 16 19:08:56 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.294.2.2 2004/07/27 00:27:07 iliaa Exp $ */ +/* $Id: gd.c,v 1.294.2.3 2004/08/16 23:08:56 iliaa Exp $ */ /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center, Cold Spring Harbor Labs. */ @@ -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 @@ 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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php