Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124621 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 13D291A00B7 for ; Fri, 26 Jul 2024 17:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722015331; bh=hKzcXOzGRCH/R1NOfB9JFOLXeZ1DLeJip8oB9o2GmuI=; h=In-Reply-To:References:Date:From:To:Subject:From; b=jpucLd5tmdN44BLABt4YYcI7ctvdUr82ruyk5HyTssnY8pbdln9NSDdR4kXwpDd9C NibcqV5zQUCkoW4swfYVAp5BEkJaFE+jSVpLDvg980y93P3nX9YSpU0m/jtDKQsaX9 UlbOlhmTeMV6CVwpk8r8aPYB90qpz1tHk3KdM1Pe24iTkIImVubvkzxtRkJqsSr8sc IlkCV28B6WZKJoXJkfk0s8j0JKrOMvO7T49/RPV8v+ZGzwRS39g28E7dG8UqJhuILb BWQKw+/8iQcUC6/9x8yerTOHyjqz1kduwEG8uZhfnEssO9K4MHpqC2PpNLgobxsCwj KD9DZfiFVqkTQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DFF5918007E for ; Fri, 26 Jul 2024 17:35:29 +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, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout8-smtp.messagingengine.com (fout8-smtp.messagingengine.com [103.168.172.151]) (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 ; Fri, 26 Jul 2024 17:35:27 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 24AF413801D5 for ; Fri, 26 Jul 2024 13:33:51 -0400 (EDT) Received: from wimap25 ([10.202.2.85]) by compute3.internal (MEProxy); Fri, 26 Jul 2024 13:33:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rwec.co.uk; h=cc :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=1722015231; x=1722101631; bh=11cXNsAi0o eq1W+I1ITAdny7IMjuF34Z7YmzUd92q+A=; b=s380WvsVNcRF64hy5k4ilTchJX UINcugjuUK5YtLffteKvfgkPXaBwvFOEiaJ/vr2TNrr8Ec4b6eScp8YsxWODxCLC i0Rstvnc02WQ4OkHjMoBejoXmg6u9td9WMaQgqQAWY8cdV2Flaks3B5hkRBQ/ErZ eqhV5zNtx9fTB2Sy2XUvIBYDqndMu5LrsUSbulfvtDoO1LvrwTYH5ztqsXEyyxXO F4ooNjb0Vbyi6AowZgeLk0s8ZtfFF40IQLDYfZe8MX1fIdd3Uq0T2i2ePzM+IwAb lq17avACA0RdJ0NqJBI972+ks9nZzJBjllAxNMrxeesGDcZfY6OCVRM3hoSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=1722015231; x=1722101631; bh=11cXNsAi0oeq1W+I1ITAdny7IMju F34Z7YmzUd92q+A=; b=EdLgZve3B7vnA1fdsPvG1sq4KwlnAY8Q+J/gm0upOOWK 6HEuHFIKF9SKLm2TBp9aO1Z75raKuLZKv8XAFoLaETeDz15W7lyetvLW1gdzZ1TG gLSNDXMhXQncV9x/kPTO1qQ1wN6vXBkpbQ5WCp2H7bXiAhIia9astZU/viDpxGfE iCOMn7ELL1rgT2SsuIyN3QQwanax/Kx8Q+/66a6f5GHtXm4NlRi1EZoIJgI5cQyW tSTB1qPsH9lF7ienQ9bQt88dZxj9e186ckT0ktKb4cj6A2M8oqaZ3Zo1Im5oRpYt RDPseSwxBcmuydLQg/P5rAf6QPICfbtLnIzTt5IMPw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrieehgdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhnshculgfkoffuohfrngdf uceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenucggtffrrghtthgvrhhnpe dtudeiieffleevtdduteeuffegteevteduueefgfekvdekffeitdfgveeuveehueenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehimhhsohhprd hphhhpsehrfigvtgdrtghordhukhdpnhgspghrtghpthhtoheptd X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id BF7971040061; Fri, 26 Jul 2024 13:33:50 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-582-g5a02f8850-fm-20240719.002-g5a02f885 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: <3beb3488-94fc-484e-ac6c-ce7a7a0facd2@app.fastmail.com> In-Reply-To: References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <95147d9d-d6e8-4396-bf0b-409c33679f90@bastelstu.be> <89096756-9f50-4b10-9630-d3b18e4b9c29@gmx.de> Date: Fri, 26 Jul 2024 18:33:20 +0100 To: internals@lists.php.net Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 Content-Type: text/plain From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On Fri, 26 Jul 2024, at 15:20, Larry Garfield wrote: > One thing to remind people about, the deprecations for md5(), sha1(), > and uniqid() explicitly say they cannot be outright removed before PHP > 10. That's at least 6 years away. That gives a loooooong time for > documentation, tutorials, instructions, and code to be updated. It also gives a loooooong time for us to update that documentation *before* we start raising deprecation notices, so that there's a chance for someone to actually know what they're supposed to do about it. When I formally proposed deprecation of utf8_encode and utf8_decode, I didn't even post the RFC for discussion before I had written two documentation PRs, one to improve documentation even if the RFC failed; and another proposing the wording if it passed. In contrast, I voted against the deprecation of strftime() because no effort had been made to explain how users should replace it. Surprise surprise, nobody has spent any more effort in the 3.5 years since the deprecation passed, and the only advice in the documentation remains: > Instead use the IntlDateFormatter::format() method. On Fri, 26 Jul 2024, at 15:27, Christoph M. Becker wrote: > Well, you are supposed to also check the hash_hmac() documentation... Why would I, if I'm not using that function? For that matter, when should I be using that function? I'm not even being facetious here, I am genuinely lacking in relevant expertise, and the summary for hash_hmac() is meaningless unless you already know what it does: > Generate a keyed hash value using the HMAC method If the problem is that the web is full of bad documentation, find or write some GOOD documentation. Then, work out how best to signpost users to that documentation. Deprecating md5() and sha1() does neither. Regards, -- Rowan Tommins [IMSoP]