Skip to content

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Oct 24, 2024

The mhash functions already have been deprecated as of PHP 8.1.0[1], but the respective constants appear to have been missed. We catch up on that.

[1] https://wiki.php.net/rfc/deprecations_php_8_1#mhash_function_family

The mhash functions already have been deprecated as of PHP 8.1.0[1],
but the respective constants appear to have been missed.  We catch up
on that.

[1] <https://wiki.php.net/rfc/deprecations_php_8_1#mhash_function_family>
@staabm
Copy link
Contributor

staabm commented Oct 24, 2024

should/will stubs also reflect the deprecation?

@cmb69
Copy link
Member Author

cmb69 commented Oct 24, 2024

should/will stubs also reflect the deprecation?

There are no stubs, and I don't think we'll introduce any. See also php/doc-en#3902.

@Girgias
Copy link
Member

Girgias commented Oct 25, 2024

Possibly add this to: https://wiki.php.net/rfc/deprecations_php_8_5 ?

@cmb69
Copy link
Member Author

cmb69 commented Oct 25, 2024

What happens if it gets declined? Do we remove the functions, but keep the constants? ;)

On the other hand, they're still useful even without the functions:

php > echo MHASH_SHA1 + MHASH_XXH3;
42

I'll write to internals.

PS: see https://externals.io/message/125864

@cmb69 cmb69 closed this in 2b10cd1 Nov 2, 2024
@cmb69 cmb69 deleted the cmb/mhash-consts-deprecate branch November 2, 2024 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants