Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124646 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 6F7B31A00B7 for ; Sat, 27 Jul 2024 12:36:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722083914; bh=//2Lp3LsrWmFVMhm8sZ/oxOAfE06eNu2sboAGqkehU0=; h=Date:From:To:Subject:In-Reply-To:References:From; b=kY1QUtRuzYmlJ6hH0tvhixbfWnhRnJsIa5JxGTGm61O5QykbeuavHiNicJGD042Y8 uuWFRCxQuaO4/IK05DR6aS7PBpj97zviHvlYI/VYmReLmhYXzNQvshWtPojKXmTi2P lv2/LE/IyCi4kLUnQr9tjElvbcsbQnAdmKnITT5VTifRU8WytK5HfKsyszqBuD78Tl CMA/fKk4VQQpVWoOl9z1utDgwSWFllAdIp6jgTwWqspHeeeaaopvsPiGcjqiJRjhgY bh5T7wLCknsgUW6I+aHA0oUGjPpX9OibI8KWta5vehCoxtC2S4xY0Lhr7vPq0Wj1ce px1zDXVPqjbPQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D26E9180056 for ; Sat, 27 Jul 2024 12:38:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout4-smtp.messagingengine.com (fout4-smtp.messagingengine.com [103.168.172.147]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 27 Jul 2024 12:38:32 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfout.nyi.internal (Postfix) with ESMTP id CF9131380455 for ; Sat, 27 Jul 2024 08:36:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 27 Jul 2024 08:36:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=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:subject:subject:to:to; s=fm3; t=1722083815; x=1722170215; bh=//2Lp3LsrWmFVMhm8sZ/oxOAfE06eNu2sboAGqkehU0=; b= PGh5+GvUTXqUFFJ+qIQZo9957tb0Bw2AG+VtonH90mTEu9dbfAnsR0h4naIEHuE/ b7629G2ys2jJnZcVV4jUiIzdrsOYfGnmZZej3q1/Q2aF6B5Qa2kr2lsieGxHFvvu 204HtESCg5nGLtaMMpT2i3FHaBWiaGkRaLzwX+5QH00qIo4DtQfn7CMdteVmb2lH QRpXH8KOtZGvLj1SWovrxwj6u94Izpf2TAt6M1VzvApNVj0O8LOsLqitC4blbMHE 3L1PYf7jwS68/PXEDQmFenWQG0YPzH0PjvLeSWatceT/wnyOZ2WlhejXeR2YmKiS YLlO4qn7nGsmtzird7vmhQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1722083815; x= 1722170215; bh=//2Lp3LsrWmFVMhm8sZ/oxOAfE06eNu2sboAGqkehU0=; b=p wThH+moTuJESFTPX1dKR+SZX6a8Hu08UvR6weiBncPRXaXZcvTb+Y1yhc5dlmYlj N267ocxU2BTfKwZs2YiqHAoptA5WBMm34f+fJkzs8DDcPh/2qXxR6Ovww8XbFf9M dk7Y/bczT/ZAm8y+hUgZkWPjw4/fBQpJEt8Pv85ozORAYS9WigUrPJd8WsdNvs6g UV1L6AjkI78OqxVR7ez0ocCwZ/aepKskSa4CQAkeDFU7NZxMLG7/lXsyi9fb3kuq fqAThDM9oKaX4Qw4WdIfn3eajxvLXzapwif8utDa1PJexACUf6Pp9RSAAZQGuBXS F3eQ4W8Maq9iEz1WDaSsw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrieejgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffufggjfhfkgggtgfesthhqmh dttderjeenucfhrhhomhepfdftohifrghnucfvohhmmhhinhhsucglkffoufhorfgnfdcu oehimhhsohhprdhphhhpsehrfigvtgdrtghordhukheqnecuggftrfgrthhtvghrnhephe elffetiefgveduteefudegtdduveeludegueegleehiefhhefgtdekveevgfelnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhmshhophdrph hhphesrhifvggtrdgtohdruhhkpdhnsggprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 27 Jul 2024 08:36:55 -0400 (EDT) Date: Sat, 27 Jul 2024 13:36:54 +0100 To: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 User-Agent: K-9 Mail for Android In-Reply-To: <3563cf9b-8eab-4c82-b525-a5d2f9a767bb@varteg.nz> References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <3563cf9b-8eab-4c82-b525-a5d2f9a767bb@varteg.nz> Message-ID: <38920A4B-790D-48C7-B2F6-C49D3F506232@rwec.co.uk> Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 27 July 2024 00:58:17 BST, Morgan wrote: > >I'm not talking about the MD5 or SHA1 algorithms or whether they should o= r shouldn't be used=2E I'm just talking about the functions themselves=2E m= d5(), md5_file(), sha1(), and sha1_file()=2E They only exist because there = wasn't the generic hash algorithm extension when they were created=2E I understand what is being claimed (and you're not the only one claiming i= t), I'm just not convinced it's true=2E I think they have standalone functi= ons for the same reason we added str_contains and str_starts_with - because= it's convenient to have straightforward functions for common use cases=2E The hash() function is like a 60-piece set of interchangeable screwdriver = heads, which only professionals and enthusiasts need; md5() and sha1() are = like the flat-head and Phillips screwdrivers that everyone has in a drawer = somewhere=2E The thing that always surprises me is that PHP *doesn't* have a standalone= function for SHA-256, which is the only other I've ever used=2E=20 To continue the analogy, we're missing a Pozidriv screwdriver, so people a= re misusing the Phillips one=2E The RFC is suggesting that we take away the= ir flat-head and Phillips screwdrivers, and leave them with the 60-piece se= t, and no instructions=2E=20 My suggestion is we instead give them a Pozidriv screwdriver, and write so= me tips on how to use it correctly=2E=20 Regards, Rowan Tommins [IMSoP]