Re: [VOTE] Support optional suffix parameter in tempnam

From: Date: Tue, 29 Aug 2023 01:57:13 +0000
Subject: Re: [VOTE] Support optional suffix parameter in tempnam
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-120940@lists.php.net to get a copy of this message
On Sun, Aug 27, 2023 at 4:20 AM Tim Düsterhus <tim@bastelstu.be> wrote: > > Hi Athos > > On 8/27/23 04:02, Athos Ribeiro wrote: > > I am moving this RFC [1] to the voting phase. Voting will be open for the > > next 2 weeks, until September 10th, as per > > https://wiki.php.net/rfc. > > > > [1] https://wiki.php.net/rfc/tempnam-suffix-v2 > > > > I find this a useful feature in general, but I believe it not working on > Windows completely nullifies the "could even provide more context for > software processing such files" argument in favor of this feature. It > will be unexpected for users if their code completely fails to work on > Windows, because the suffix is ignored. > > For that reason I voted "no". > > Best regards > Tim Düsterhus > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php I have voted no for a similar reason. It would be nice if there were os-specific packages in core that handled these kinds of things, because the functionality is definitely useful. But if you call an API like FileSystem\Os\Unix\tempnam then at least the platform specific behavior is obvious and understood.

« previous php.internals (#120940) next »