Re: [RFC] Deprecations for PHP 8.4

From: Date: Thu, 27 Jun 2024 04:01:04 +0000
Subject: Re: [RFC] Deprecations for PHP 8.4
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Tuesday, 25 June 2024 at 23:29, Bruce Weirdan <[email protected]> wrote:

> Is there a reason to keep crc32?

Good question, I had a chat with Tim as I thought it was similar to the md5()/sha1() functions.
Moreover, the crc32() function returns an int, whereas the equivalent of the hash extension
returns a string, so to get the same behaviour one needs to do:

hexdec(hash('crc32b', $str));

It might still make sense to add it to the RFC, but it would need to be its own section with
its own rationale.

Best regards,
Gina P. Banyard

>


Thread (68 messages)

« previous php.internals (#123917) next »