php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5023 tmpfile() function broken on Win32
Submitted: 2000-06-14 07:56 UTC Modified: 2005-03-31 16:13 UTC
From: doug_Bridges at hotmail dot com Assigned:
Status: Wont fix Package: Other
PHP Version: 3.0.16 OS: Win32
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2000-06-14 07:56 UTC] doug_Bridges at hotmail dot com
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-31 16:13 UTC] php-bugs at lists dot php dot net
We are sorry, but we do not support PHP 3 related problems anymore.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 19:01:29 2024 UTC