iliaa Mon Aug 16 19:07:43 2004 EDT Modified files: /php-src/ext/gd gd.c Log: Fixed bug #29594 (Use PHP's own tmpfile() implementation). http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.297&r2=1.298&ty=u Index: php-src/ext/gd/gd.c diff -u php-src/ext/gd/gd.c:1.297 php-src/ext/gd/gd.c:1.298 --- php-src/ext/gd/gd.c:1.297 Mon Jul 26 20:27:06 2004 +++ php-src/ext/gd/gd.c Mon Aug 16 19:07:42 2004 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: gd.c,v 1.297 2004/07/27 00:27:06 iliaa Exp $ */ +/* $Id: gd.c,v 1.298 2004/08/16 23:07:42 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