Req #43898 [Opn->Dup]: tempnam with postfix or extention param
| From: | cmb@php.net | Date: | Wed, 13 Jan 2021 15:09:56 +0000 |
| Subject: | Req #43898 [Opn->Dup]: tempnam with postfix or extention param | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-231540@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=43898&edit=1
ID: 43898
Updated by: cmb@php.net
Reported by: tgkprog at gmail dot com
Summary: tempnam with postfix or extention param
-Status: Open
+Status: Duplicate
Type: Feature/Change Request
Package: Filesystem function related
Operating System: linux
PHP Version: 5.2.5
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Duplicate of request #37613.
Previous Comments:
------------------------------------------------------------------------
[2008-01-20 03:04:44] tgkprog at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=43898&edit=1