#43898 [NEW]: tempnam with postfix or extention param

From: Date: Sun, 20 Jan 2008 03:04:44 +0000
Subject: #43898 [NEW]: tempnam with postfix or extention param
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121412@lists.php.net to get a copy of this message
From: tgkprog at gmail dot com Operating system: linux PHP version: 5.2.5 PHP Bug Type: Feature/Change Request Bug description: tempnam with postfix or extention param Description: ------------ Would like another paramater to tempnam so we can specify the postfix thus it can be used as tempnam("/xyz/", "Report_", ".txt") To which it can return "/xyz/Report_DAKHD.txt" The default can be the system default or ".tmp" Note it should even work if the psotfix is something "_typeA.txt" example tempnam("/xyz/", "Report_", "_type_A.txt") might return "/xyz/Report_KASD8_type_A.txt" Its just a postfix not the extention only Reproduce code: --------------- Feature request Expected result: ---------------- A file name in specified folder with requested prefix and postfix (extention) Actual result: -------------- n/a (Feature request) -- Edit bug report at http://bugs.php.net/?id=43898&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=43898&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=43898&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=43898&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=43898&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=43898&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=43898&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=43898&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=43898&r=needscript Try newer version: http://bugs.php.net/fix.php?id=43898&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=43898&r=support Expected behavior: http://bugs.php.net/fix.php?id=43898&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=43898&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=43898&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=43898&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43898&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=43898&r=dst IIS Stability: http://bugs.php.net/fix.php?id=43898&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=43898&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=43898&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=43898&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=43898&r=mysqlcfg

« previous php.bugs (#121412) next »