Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124700 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 1C1F41A00B7 for ; Wed, 31 Jul 2024 21:13:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722460528; bh=aNqdtmR/vTDbsSldW+0U7/AcCTPcWBvH0VRfdCbhJNg=; h=Date:Subject:To:References:From:In-Reply-To:From; b=i2f487qzU4MisWew3T7QzaFnPIATPtjIPAYyinFiWa10m2nJnJoJUpFNYmlZhqs85 SKmPngY9KdFBXiz3OkzzAirsu0qyqnXn8zp+moaUY3CAB5PJfrr8wS+RgIDLyRYvm9 y60o6LPjWD0muAT0zhu2K438i3/qBotIymy2V/WkNEBFazS7auZPp2kyXC5ef/MQjH 2q1G1xVNWJkFO0KPY7+WdpS/OfT/Xay9SYQ+/qdwOTLGorPfQu3Jacaa8GcaOH/ucj mj4+yecWQyaNcQ3q8+N+URNkNNxifjAS48IpZSWom4iU9ttoCXAIeujwS0oIpXhgGP slMH33tSkx6mQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2889E180054 for ; Wed, 31 Jul 2024 21:15:27 +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 fhigh2-smtp.messagingengine.com (fhigh2-smtp.messagingengine.com [103.168.172.153]) (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 ; Wed, 31 Jul 2024 21:15:26 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 827251140073 for ; Wed, 31 Jul 2024 17:13:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 31 Jul 2024 17:13:47 -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=1722460427; x=1722546827; bh=8Nr0yFB05ET9sJZv211huQ6/Z5NuaI//MMKe0XSSsUY=; b= skKE+8FQetYjwpWOuxs81iju2gjAnSMqGXKX+UVy4P+Nf+9HWNf2MW7wiWaKsw97 v24GBioCWiXaCWG9NvEy5W5xkbOsfGSjFageaFrzvJbrw/B0Efh+7jTM6BOEVDMU Z8MUlNDcPxgt3SyCWc8jRLWyiRIRbPt0l75MWxZww+0TH+vzYNLxTuxZbIk9UnUL 1lPf6BKCJSxaGqBdaF7+ZhnNR0vNKCu5LzmlJhbUEc48GSsvPztqcMoVraweF6Ez S8CBZIFkDfFns2ZtsSBE57SBz7Bq3ghTmfEYB/BKLNovFqxCkTNoSK1KRyRtVHCD bJ2hWNmM0pP/uFTJcEGBcQ== 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=1722460427; x= 1722546827; bh=8Nr0yFB05ET9sJZv211huQ6/Z5NuaI//MMKe0XSSsUY=; b=v PlTGLMd1J2MBQz3nqE/VQo9CyC6cYwppfS2UCj3HEm1ATbdeYvhBODpNWieg1ZGH NEKs3uIwqQ9S+QPnnqTbzSL73rO5/wqnRIsqKFiG5tALjwAIl3kTk0A2pfKJxzMS Mo+27a+1VMQc3+u2pRBFmTlJwQk4yqJbU2TBOQHlzDQr5lrolshth3/iiWo4HQ9Z fKXcLbTm9fEkmjyGtwhBfBstygznooOlw5NT+Quick0uUz3rGTALD825IgyfswyI R1izg43+D1UGeONp+ye5pBBIUE1dlXhll2qiief+geqAsaaJDSfnrDVvUNZ5bH92 qrDhJ3pKzLtiaAguj+9Gw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjeeigdduheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtvdejnecuhfhrohhmpedftfhofigrnhcuvfhomhhmihhnshculgfkoffuohfrngdf uceoihhmshhophdrphhhphesrhifvggtrdgtohdruhhkqeenucggtffrrghtthgvrhhnpe eltdetjeetvdehteffgefgleeviefgveehjeelleehgeegteekheejteeiheeuhfenucff ohhmrghinhepphhhphdrnhgvthenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehimhhsohhprdhphhhpsehrfigvtgdrtghordhukhdpnhgspghr tghpthhtoheptd X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 31 Jul 2024 17:13:46 -0400 (EDT) Message-ID: Date: Wed, 31 Jul 2024 22:13:45 +0100 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 To: internals@lists.php.net References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <95147d9d-d6e8-4396-bf0b-409c33679f90@bastelstu.be> <89096756-9f50-4b10-9630-d3b18e4b9c29@gmx.de> <3beb3488-94fc-484e-ac6c-ce7a7a0facd2@app.fastmail.com> <70262e95-f0e7-40c0-a731-480f178cbc35@bastelstu.be> Content-Language: en-GB In-Reply-To: <70262e95-f0e7-40c0-a731-480f178cbc35@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On 30/07/2024 20:15, Tim Düsterhus wrote: > Part of the motivation of the deprecation (and my argument against the > addition of a standalone sha256() function) is simplifying the > documentation: Everything needs to be written down in multiple > different places, any changes to hash_file() will likely also need to > be applied to md5_file() and sha1_file() - and then it will need to be > translated. We already have a solution for this: named snippets (implemented as XML entities), which exist in the source once, are translated once, and then inserted into every page that applies when it's rendered to HTML. For instance, the yellow "Caution" box on pages like https://www.php.net/rand is defined once in "language-snippets.ent", and can be inserted into any page with &caution.cryptographically-insecure; > > Given that the md5(), sha1(), md5_file(), and sha1_file() functions > are not part of the hash extension, it's also much harder for the user > to discover the incremental hashing functionality provided by > hash_init(). Again, that seems easily solved: ext/hash is now always-on, so moving the functions there from ext/standard would have no effect on users. -- Rowan Tommins [IMSoP]