#40994 [Opn->Fbk]: tempnam returns invalid path
| From: | tony2001@php.net | Date: | Wed, 04 Apr 2007 12:45:39 +0000 |
| Subject: | #40994 [Opn->Fbk]: tempnam returns invalid path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111089@lists.php.net to get a copy of this message | ||
ID: 40994
Updated by: tony2001@php.net
Reported By: php at andreas-balzer dot de
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: Microsoft Windows Vista 64 Bit U
PHP Version: 5.2.1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2007-04-04 12:31:36] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40994&edit=1