Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Changelog for the function "hash" (php.net) #3480

Open
mikuskov opened this issue Jun 22, 2024 · 1 comment
Open

Error in Changelog for the function "hash" (php.net) #3480

mikuskov opened this issue Jun 22, 2024 · 1 comment
Labels

Comments

@mikuskov
Copy link

Function:
hash
Changelog:
8.0.0 hash() now throws a ValueError exception if algo is unknown; previously, false was returned instead.

It is not true. Before version 8.0.0, it issues
"Warning: hash(): Unknown hashing algorithm..."

@tiffany-taylor
Copy link
Member

tiffany-taylor commented Jun 22, 2024

The warning is displayed, but false is actually what is returned from the function:
https://3v4l.org/KLEOa#v5.1.2
https://heap.space/xref/PHP-7.4/ext/hash/hash.c?r=d59aac58#132-133

Also, this issue should be in the doc-en repo, since it's an issue with the documentation. (I don't have requisite access to move the issue to the other repo, will have to be done by someone else)

@sy-records sy-records transferred this issue from php/web-php Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants