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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: doug_Bridges at hotmail dot com
New email:
PHP Version: OS:

 

 [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: Sat Apr 13 18:01:29 2024 UTC