Req #37613 [Com]: tempnam suffix support and dir behavior change
| From: | sheyda dot babi5161 at gmail dot com | Date: | Tue, 03 Jan 2023 11:38:00 +0000 |
| Subject: | Req #37613 [Com]: tempnam suffix support and dir behavior change | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-243320@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=37613&edit=1
ID: 37613
Comment by: sheyda dot babi5161 at gmail dot com
Reported by: wardenik at gmail dot com
Summary: tempnam suffix support and dir behavior change
Status: Open
Type: Feature/Change Request
Package: Filesystem function related
Operating System: Linux
PHP Version: 5.1.4
Block user comment: N
Private report: N
New Comment:
I have the same issue. I tried contacting the support, got no answer.
(https://www.hyveehuddle.net/)github.com
Previous Comments:
------------------------------------------------------------------------
[2021-09-27 12:23:17] cmb@php.net
> It should generate an error instead and not trash some other
> unwanted places.
As of PHP 7.1.0, a notice is emitted if the function falls back to
the system's temp directory[1].
[1] <https://github.com/php/doc-en/commit/2f07d53d999169b7446669a51dfd6ce9b3c20435>
------------------------------------------------------------------------
[2021-01-13 15:09:56] cmb@php.net
Related To: Bug #43898
------------------------------------------------------------------------
[2006-05-27 12:20:06] wardenik at gmail dot com
Description:
------------
It would be very useful if the tempnam function would allow to support suffix on the created
filename as well. I'm creating for instance xml files with it, and they have to have .xml at
the end.
Moreover, I think that the behavior that tempnam changes the prefix when unable to create the file
in the supplied 'dir' is wrong. It should generate an error instead and not trash some
other unwanted places.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=37613&edit=1