Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120946 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68899 invoked from network); 29 Aug 2023 15:19:16 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Aug 2023 15:19:16 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A712B1804DF for ; Tue, 29 Aug 2023 08:19:15 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 29 Aug 2023 08:19:14 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 734683200955; Tue, 29 Aug 2023 11:19:13 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute4.internal (MEProxy); Tue, 29 Aug 2023 11:19:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1693322352; x=1693408752; bh=cntcIMDUN9 h7XyQJxBm3xBTsCWUwPvQGjK872EUDrdg=; b=ZiWpZy77MxNcAxDx/HhukwvUsB roVC+aOdA1uv1GZbVC9pAL3HnelfkJ7E09vq21f36yhj2blsBxddgO0CfQczPmbp d1W93/5mK/wIbXpl1r2Zofe7NnGGEV7dOjoneF33zuD4W5nrGXUodDf+SfCUDDcd SrSsF6+cZQM29Wf3jMaoJIp7dzYFj4Wrg3iJ+tjCRJliFuWPVXhNFK3BZVyws+Wu i7RyVTDFoTwGAwlw2Ct+/HOOn0jBK9VQ/06IFPO5HSetIiDcKzslqWN0YeyJAviv Y7oBtadoAVMzcxYTulcaE9q4ut5U2vPB2n0QtWaVWNcxo95sCsy9TGuYZqNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1693322352; x=1693408752; bh=cntcIMDUN9h7XyQJxBm3xBTsCWUwPvQGjK8 72EUDrdg=; b=jR0bjEu0Y+wfdFt+5zVY0J0/RRV9Of20FwCiERINKG/JYjsywwv 8DKVxqwQ8dMWIjrqWzHQ/uItdFs+zcmqiQ869bVUwrODdPjiHG/pQSHR3CFx840V OhY/N0iEKqG6Kw3qZXfjHLnXm08GGrNz0MsUXU43/LYQK7Zp8lYt62lbWeu89HKH rX0P0yGNeIRW2H5JZLLq8ayvMZUoL2GutuVCojKl6Oe6JGQvtFt5onGcdr8KtSU8 QZl8EHweUTxQK7/Wtwh0jE75i8cy8J7iV6jj8Xjhj/Q8J/S6sxVM37q3y4WGa0tH 3iV3/opYteQLbsvuPS//YBWPgNMZtIYillw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudefiedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtgfesthhqredtreerjeenucfhrhhomhepfdfn rghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrd gtohhmqeenucggtffrrghtthgvrhhnpeefffehgfffuefggfehueelgeeuleevueegvedu tdffkedtgfekhedtgefghfejtdenucffohhmrghinhepphhhphdrnhgvthenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihsehgrghr fhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 844B21700093; Tue, 29 Aug 2023 11:19:12 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-701-g9b2f44d3ee-fm-20230823.001-g9b2f44d3 Mime-Version: 1.0 Message-ID: In-Reply-To: References: Date: Tue, 29 Aug 2023 15:18:52 +0000 To: "Levi Morrison" , =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: "Athos Ribeiro" , "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Support optional suffix parameter in tempnam From: larry@garfieldtech.com ("Larry Garfield") On Tue, Aug 29, 2023, at 1:57 AM, Levi Morrison via internals wrote: > On Sun, Aug 27, 2023 at 4:20=E2=80=AFAM Tim D=C3=BCsterhus 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=C3=BCsterhus >> >> -- >> 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. I did as well. I am in favor of the functionality, but having it silent= ly not-work on Windows is not a good approach. That may mean a larger r= efactoring of tempnam is a good next step, to fix the issues noted in th= e RFC and then support Windows consistently. I would support that, and = including a suffix either with that or as a follow-up. (Side note: If messing about there, making prefix optional would also be= wise so that it can be skipped via named args.) --Larry Garfield