#47999 [NEW]: tempnam() fails to create file

From: Date: Fri, 17 Apr 2009 03:34:46 +0000
Subject: #47999 [NEW]: tempnam() fails to create file
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-135910@lists.php.net to get a copy of this message
From: phpbug at danf dot oib dot com Operating system: Windows Server 2003 PHP version: 5.2.9 PHP Bug Type: Filesystem function related Bug description: tempnam() fails to create file Description: ------------ tempnam() does not create a temporary file, and silently fails. This worked fine in PHP 5.2.3, but starting failing in 5.2.6 (or somewhere in between). It still does not work in 5.2.8 or 5.2.9-1. I've tested with both the IIS module (php5isapi.dll) and php-cgi.exe, with the same results. open_basedir is off. Reproduce code: --------------- <?php $tempnam = tempnam('','random') or die("Can't create tmpfile.\n"); echo "Successfully created $tempnam.\n"; ?> Expected result: ---------------- Successfully created D:\temp\ran1E42.tmp. Actual result: -------------- Can't create tmpfile. -- Edit bug report at http://bugs.php.net/?id=47999&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47999&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47999&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47999&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47999&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47999&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47999&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47999&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47999&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47999&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47999&r=support Expected behavior: http://bugs.php.net/fix.php?id=47999&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47999&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47999&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47999&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47999&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47999&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47999&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47999&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47999&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47999&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47999&r=mysqlcfg

« previous php.bugs (#135910) next »