Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124584 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 418031A00B7 for ; Wed, 24 Jul 2024 22:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721858587; bh=eybuHevQtKNe4d1TNB8ZtOOGu0ONcczGP6MGH9e5bJY=; h=Date:Subject:To:References:From:In-Reply-To:From; b=bEiOvU0jb1ktdRTVV7xdJEn0HEoloOm3qs6Ge2827ox1h+i2QbK+rK3SmhxPOOmdK 1K8EeeblxXew5aQHsBgEpZScPSOdCs9fqI63A0waJVLi9dUHswV/PoDBD4n8ETO7Io EZ+i4CuDW2t9+c0MGU28ph4wk5vo6XeZ3eLf6rQvuG+TccGbcMelGfG0VGISlLevHU xC2trLrz7IMBYQFweGys2pE2vTvlmxp5nWFOt4oMQk67cyzCzcjx6awTMV89aDFVjJ sr67fI3CsG+myUmH2h8DV38fKK437snlsNJJnt1HtJ0wckeiNzDv+T7DKufqZJULSJ wcxsy+Nzib8QQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 27455180077 for ; Wed, 24 Jul 2024 22:03:05 +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.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from megan.smtp.mailx.hosts.net.nz (megan.smtp.mailx.hosts.net.nz [43.245.52.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 24 Jul 2024 22:03:04 +0000 (UTC) Received: from 125-237-145-229-fibre.sparkbb.co.nz ([125.237.145.229] helo=[192.168.1.68]) by megan.smtp.mailx.hosts.net.nz with esmtpsa authed as varteg.nz (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128) (Exim 4.96) (envelope-from ) id 1sWk33-00DZX5-2R for internals@lists.php.net; Thu, 25 Jul 2024 10:01:25 +1200 Message-ID: Date: Thu, 25 Jul 2024 10:01:15 +1200 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> Content-Language: en-GB In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Hosts-DKIM-Check: none From: weedpacket@varteg.nz (Morgan) On 2024-07-24 15:58, Peter Stalman wrote: > On Mon, Jul 22, 2024 at 9:06 AM Derick Rethans > wrote: > > - Deprecate md5(), sha1(), md5_file(), and sha1_file() (just says > "large >   impact") > > > About 1.2 million. > https://github.com/search?q=%28md5+OR+md5_file+OR+sha1+OR+sha1_file%29+language%3APHP+&type=code > > > On the other hand, who will be impacted by these deprecations? > Potentially everyone, as these are included in many projects and in many > vendor packages.  It's busy work for the people who aren't affected. > Sure, eventually, it will all be sorted out as CI warnings slowly > subside because of this. > > Reasons such as GIT and most cloud storages using these functions should > be enough to spare them. Example: https://rclone.org/overview/ > > > The point is that there are several reasons in 2024 to use md5 and sha1. > Granted hashing passwords isn't one, but we're past that as a community > already. And for the few that aren't, I'd argue there is no saving. > And they would still be available as hash("md5") and hash("sha1"); the only reason they're called out as their own distinct functions today is historical inertia.