Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:120940 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 28757 invoked from network); 29 Aug 2023 01:57:29 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Aug 2023 01:57:29 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A10851804C6 for ; Mon, 28 Aug 2023 18:57:26 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (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 ; Mon, 28 Aug 2023 18:57:26 -0700 (PDT) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-313e742a787so2373675f8f.1 for ; Mon, 28 Aug 2023 18:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datadoghq.com; s=google; t=1693274244; x=1693879044; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yLhqVAlwzuJCm+mjt0Mwl0YJn5yJnuNHPlxR4itJ5l4=; b=RYvXL+yQB9+hHSO6E2ncu2Px854vVP5xvwddvQ6w+sDNTllu+8mIu3kFOXSQE8nHr0 ZbA5EfYWL4RuqJV41tMoz41f6pjDDJyxiasSAvZei7J5hEbbolpelHVeH0m4wn0YOwOh qKy6/yDX07nX8djjyaXzh9Neid36uPAziw7LM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693274244; x=1693879044; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yLhqVAlwzuJCm+mjt0Mwl0YJn5yJnuNHPlxR4itJ5l4=; b=KZI7T0QrthAGFP4jLhPkR1rQrSdVcIljbmR+JGZ3Y6T0QZZridA1iUz5D9V/LPGRC0 ihkW17KnyZiAqjI+nZ6ecUjVGGOqzP5Co9QjB/2rC6LDmefnN1DpenJJrIzrXz8iMocl tuYE2A3SZxU2P6KUttnUKrm4+SvSZwAzAWkURld/b9toigNflR9SUOkh2zrWGjxsz/RV 7UtcXyhp91jsGAKpG7PB0ql2o2o8gUPXicxAc3bG2CcV7ZWmm0JfJacBOwOv7JVSfM5d DsKI69ipmmuaYoaR8Es0cGh3rG9CYAqy4XlMnToRVda3XeC5vtYSYeDpchjIXnyPSV/z sTWg== X-Gm-Message-State: AOJu0YyuN9HaqzOBLZeuDc3aZLsD911hEBGr+zaMJalndKuEjbeJzrGo s5rQWN97MU3XHOE9g6WgAyQE4aSxf04ZplIePwoteQ== X-Google-Smtp-Source: AGHT+IH8+K+hHWK441NrivQ4NWscRxp7ZEVWfPcufLXarxjEs1KYY7MSSKVtxTSISYLO1xKjKTEJhK45o3SHpsYeB/E= X-Received: by 2002:a5d:4bc3:0:b0:317:f3fd:21b0 with SMTP id l3-20020a5d4bc3000000b00317f3fd21b0mr893161wrt.7.1693274244404; Mon, 28 Aug 2023 18:57:24 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: Levi Morrison Date: Mon, 28 Aug 2023 19:57:13 -0600 Message-ID: To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: Athos Ribeiro , internals@lists.php.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Support optional suffix parameter in tempnam From: internals@lists.php.net ("Levi Morrison via internals") 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.