Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124613 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 2DC9D1A00B7 for ; Fri, 26 Jul 2024 13:13:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721999709; bh=g1UHV9ow2Mmg4iPYn+C+jT7SQE5datABBCCeN+g4QfA=; h=In-Reply-To:References:Date:From:To:Subject:From; b=TDw0gsqzMrN6972yajDb41bOqWHSzXpS6QNtq5V5/BxVMgL8E5E+VDL/Iobs40UCR ur6jR6R5RewQZqXqMp4wtn8m8OwnHzdPDPijSsBmbP0wF/6yo0Uu4vbB+1bNd+f7Nm ga/Wbz5erYsCMst3dg4PzYjCdt+0X8FdO6ai9oI+RfWlvXMGiHZ3P/ok3ppO6PqYVa fStAMh1smzFA4QVOtXkM8eeZgYtKUeddk8JA/APkvNtSKqxMkcr9AmfaJNPHXFCyt1 6rm0jULMk5elK3pMF87L75R4wjdIO/ChzhYqAG05sOTPPCnM/gonM1L75EI38ldTvQ N699lrxNKWCzg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5A6EC18007C for ; Fri, 26 Jul 2024 13:15:08 +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 fout6-smtp.messagingengine.com (fout6-smtp.messagingengine.com [103.168.172.149]) (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 13:15:07 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailfout.nyi.internal (Postfix) with ESMTP id 354061380205 for ; Fri, 26 Jul 2024 09:13:32 -0400 (EDT) Received: from wimap25 ([10.202.2.85]) by compute3.internal (MEProxy); Fri, 26 Jul 2024 09:13:32 -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=1721999612; x=1722086012; bh=g1UHV9ow2Mmg4iPYn+C+jT7SQE5datABBCCeN+g4QfA=; b= Aw95Q6C+sjG7E1cF9/fA1csTRSc79/yEYvPY/G1lCOpDugalaLxZTi/j1GWgarSt tkDlorcU4B7i2bmXoHWaj2+0p3fkG5PbiR0xcfH57dML2ECyS9S9WL8rEkhYyHAO nsFpCKY478Jv9B5+MJsQNn3ljuUvPmC9c/5SvcK9MJtNNn1JYMMKJpyMS/sAiiCV eK9gKPOViknFy87Xx3newlWjKkQ/AjBK5xW9Y+BSR94/8bYqMTuaafcPUkL+0ogi 1BVUw7BA9EIeQpxXkQuNPWRvfBVdh4iKGbjYKXHrBpm7Sjb4p+s+mDXSh2uiJJx1 gu2Oxkgw/0xTXItDfYaJ9Q== 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=1721999612; x= 1722086012; bh=g1UHV9ow2Mmg4iPYn+C+jT7SQE5datABBCCeN+g4QfA=; b=D 6mGRWx7hDW0f0r2zalfmgbP9pip1AeITil1G6bpRebm5HV1cbTdEdcYvLBoTBaGP brNqR9RyKqX3mYfMIHyTjmpJ7eoWBib3gzyLQBu/g+Wd2l8LU/FE0nFhXAq0blTf OCs//TTz9vXUxzyQ8n4p9oW6iWDWwEyfxy2SPzUtxGYcHNv7PGn1M4n80j7nAA5m aLY6U3AWM0xWetnECP6Ledi82RpkYkhzlVy+MAeGgpdb4cC2puTKUHEoEgCWVsnw rY0eyJI7MUVu2uJz3QkzHJaBGhElIpeyBpqfU10Np0rACElitmZtBojMBWbtbqw+ t/rSLi2dqEd7OqO7HpVZw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrieehgdeifecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdftohif rghnucfvohhmmhhinhhsucglkffoufhorfgnfdcuoehimhhsohhprdhphhhpsehrfigvtg drtghordhukheqnecuggftrfgrthhtvghrnhepfeefveefjedvueekveettdevgeefffeu hfegveeiheettdeuieehveekgefhffefnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepihhmshhophdrphhhphesrhifvggtrdgtohdruhhkpdhn sggprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: id5114917:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id D114F1040061; Fri, 26 Jul 2024 09:13:31 -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: <825ca9ca-68c9-4073-9864-ed10d3dacaa7@app.fastmail.com> In-Reply-To: <6c0baa01-68e5-4d74-bc4e-d6830ab5076d@bastelstu.be> References: <1a88918e-e808-d778-45e1-53797660e093@php.net> <95147d9d-d6e8-4396-bf0b-409c33679f90@bastelstu.be> <6c0baa01-68e5-4d74-bc4e-d6830ab5076d@bastelstu.be> Date: Fri, 26 Jul 2024 14:13:10 +0100 To: "PHP internals" Subject: Re: [PHP-DEV] [RFC] [VOTE] Deprecations for PHP 8.4 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: imsop.php@rwec.co.uk ("Rowan Tommins [IMSoP]") On Fri, 26 Jul 2024, at 12:58, Tim D=C3=BCsterhus wrote: > I think you are expecting a little too much from a beginner that is=20 > following "the modern PHP tutorial" if you expect them to critically=20 > question whether the tutorial is actually good or not. They are likely=20 > already struggling with syntax and explaining the difference between=20 > "if" and "while". You wouldn't believe how often I've heard the term=20 > "if-Schleife" (if loop) in German. I think you are expecting a little too much from a beginner if you think= they will see the message "md5() is deprecated", and research up to dat= e advice on hashing algorithms, rather than asking ChatGPT how to make t= he code work, and replacing it with "hash('md5', ...)". > CRC32 does not claim to be a cryptographically secure hash algorithm.=20 > Its use case is completely different. As an inexperienced user looking at the PHP manual for hash() and hash_a= lgos(), how would I know that? It's right there in the list, just after = something called "adler32". > I'm seeing the sarcasm indicator, but I'm compelled to point out that=20 > SHA-256 and SHA-512 are both SHA-2. If one is broken, it is likely tha= t=20 > the other is as well. Again, you know that, but do the users you're trying to help by deprecat= ing sha1()? I'm a reasonably experienced developer, and I have no idea w= hy SHA-512 would exist if it's not in some way "better" than SHA-256. Regards, --=20 Rowan Tommins [IMSoP]