Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124691 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 F09C41A00B7 for ; Tue, 30 Jul 2024 19:24:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1722367570; bh=UGu3gTLyoZDD6YqaaZ8QRCplwSMLPqARw/mDz7SteJ4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LjsBD6tkkl1nxaqPAxg5J18Jv4nQix8cVY1szj3UGJw0g52PrQJGlqr1Vxo9DUAPq 7cOTiYeYjzK+h+SwYzS5yK/NYty+Na/GhQ3TOLMi0Ru+y+Nzq2HrFN5MUddzkFkR39 u+abyJOH0CuKX56dO/vRDFQ1w6c1G2RsSIN5WQtR+VSWMU4PinC/saicv9J0sTguE2 ZPQJyeEM0vENEbjRxqEb/YLTFMfNMm22YIGteBpH+n+1QYr6o6f7mfQAAjJ7j9c2SJ JdoinFTiHbIhjrAy/Vrnw4cI/k1EtclBwvajafkYyRAUIsG69q+x7QHosNzDn80WAY U3R4q5EnyfaRg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0E8A418005C for ; Tue, 30 Jul 2024 19:26:10 +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.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Tue, 30 Jul 2024 19:26:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1722367471; bh=Sg73tlIo5Cm7HvCmMauJ0LRcsmmWAvnaugPNIPZoHS4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=BvF8srJbiUyXAC4sBOXUKzt9H7Oz7uAiXQBLzVZDTOfeC/jQD5bOzrb9mUV/rHoC9 yNtqvzXeBE6EdpeblZ4b58Xmac0o/p8x9HNxJ9nCti441N0Reo5S+qi8N8NzvU34FP fLwSev6Fi3Ten/6mFKGPHItrHCtYU0RCX7/azs7Q430SlTnrhcsW+t2jKgITdj5CoD aypyqXLgTt/tv2AiQdj/TY0dvrNbR9gxnYsQQDq+tis4gFNkA/1PpDsFi7cGQ3268r FZTq2hHkPMIANSqrd1I0gJsBJ1dsIavRvoesDRIz9LEi6IR1A+veJbqkxQMOBBJOj6 AI+imfP9QDfTw== Message-ID: <112d479e-b10c-4b0b-804d-1d9f59183fba@bastelstu.be> Date: Tue, 30 Jul 2024 21:24:29 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 To: Mike Schinkel , "Christoph M. Becker" Cc: "Rowan Tommins [IMSoP]" , 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> <921dcf17-280b-4005-b31f-5811dbe5ce62@gmx.de> <884458DE-74CF-4198-90E7-0BBBF828260F@newclarity.net> Content-Language: en-US In-Reply-To: <884458DE-74CF-4198-90E7-0BBBF828260F@newclarity.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi On 7/28/24 06:33, Mike Schinkel wrote: > P.S. Frankly, I really would not want to see md5() nor sha1() removed because there are valid use-cases for them. I would at least like to see them kept in some form, maybe in an `\Insecure` namespace, or renamed `insecure_md5()` and `insecure_sha1()` or maybe add a third optional bool parameter `$insecure_ok` that defaults to `false` — or ?enum flag parameter accepting Hashing::INSECURE_OK as its only value — thus allowing developers to explicitly opt-in to insecure use. Renaming the functions would do nothing but make this a backwards compatibility break, whereas a deprecation does not. Remember: The algorithms are also available by means of the hash() function (and the related functions), without emitting a deprecation, warning, error, or Exception. Best regards Tim Düsterhus