Bug #5023: tmpfile() function broken on Win32

From: Date: Wed, 14 Jun 2000 05:56:33 +0000
Subject: Bug #5023: tmpfile() function broken on Win32
Groups: php.dev 
Request: Send a blank email to php-dev+get-21286@lists.php.net to get a copy of this message
From: doug_Bridges@hotmail.com Operating system: Win32 PHP version: 3.0.16 PHP Bug Type: Other Bug description: tmpfile() function broken on Win32 I am having a problem with the GD library on windows. When a php script tries to call ImageGIF, I get the error that PHP is unable to create a temporary file. PHP is using the tmpfile() command to create a temporary file. Unfortunately, tmpfile() has a bug when compiled using Microsoft Visual C++. The function tmpfile() will always create the temporary file in the root directory of the webserver. I obviously cannot have php creating a file in the root directory of my webserver. This function call is used several other times in the ftp and file functions. Microsoft suggests correcting the problem by using tmpnam() and fopen(). The Microsoft bug report can be found at: http://support.microsoft.com/support/kb/articles/Q51/3/26.ASP

« previous php.dev (#21286) next »