php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40994 tempnam returns invalid path
Submitted: 2007-04-04 12:31 UTC Modified: 2007-07-19 15:45 UTC
From: php at andreas-balzer dot de Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 5.2.1 OS: Microsoft Windows Vista 64 Bit U
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at andreas-balzer dot de
New email:
PHP Version: OS:

 

 [2007-04-04 12:31 UTC] php at andreas-balzer dot de
Description:
------------
If you request php function tempnam on Windows Vista 64 Bit, it'll add a \ at the end of the filepath.
e.g.: You specify the path with "c:/any/" (prefix "file"), it'll return c:/any/\fil.tmp

First of all you notice the \ and then you notice, that only 3 chars of the prefix are used.. :-/


Reproduce code:
---------------
$something = tempnam('c:/any/','file');

Expected result:
----------------
c:/any/file.tmp

Actual result:
--------------
c:/any/\fil.tmp

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-04 12:45 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2007-04-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 03:01:28 2024 UTC