diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2004-08-16 23:08:56 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2004-08-16 23:08:56 +0000 |
| commit | 40645cc0a691d703873dc7d1565f86d5c804f675 (patch) | |
| tree | ff7aac3ec8a7ee587cb678fbb2b22a299329ffb5 | |
| parent | 33e114b37e650e0c43fa23d8945449498aca8d1c (diff) | |
| download | php-git-40645cc0a691d703873dc7d1565f86d5c804f675.tar.gz | |
MFH: Fixed bug #29594 (Use PHP's own tmpfile() implementation).
| -rw-r--r-- | ext/gd/gd.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <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; |
