Req #37613 [Opn]: tempnam suffix support and dir behavior change

From: Date: Mon, 27 Sep 2021 12:23:17 +0000
Subject: Req #37613 [Opn]: tempnam suffix support and dir behavior change
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-236859@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 Updated by: cmb@php.net 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: > 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> Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#236859) next »