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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
41 - 21 = ?
Subscribe to this entry?

 
 [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-2022 The PHP Group
All rights reserved.
Last updated: Tue Nov 29 13:05:54 2022 UTC