#40994 [NEW]: tempnam returns invalid path

From: Date: Wed, 04 Apr 2007 12:31:36 +0000
Subject: #40994 [NEW]: tempnam returns invalid path
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111088@lists.php.net to get a copy of this message
From: php at andreas-balzer dot de Operating system: Microsoft Windows Vista 64 Bit U PHP version: 5.2.1 PHP Bug Type: Unknown/Other Function Bug description: tempnam returns invalid path 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 bug report at http://bugs.php.net/?id=40994&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40994&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40994&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40994&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40994&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40994&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40994&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40994&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40994&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40994&r=support Expected behavior: http://bugs.php.net/fix.php?id=40994&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40994&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40994&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40994&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40994&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40994&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40994&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40994&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40994&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40994&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40994&r=mysqlcfg

« previous php.bugs (#111088) next »