Skip to content

Warnings become errors hash stream functions (other than hash_init) #4625

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

Closed
wants to merge 1 commit into from

Conversation

markrandall
Copy link

No description provided.

@krakjoe
Copy link
Member

krakjoe commented Aug 29, 2019

Merged as 960da6d

Thanks.

@krakjoe krakjoe closed this Aug 29, 2019
@@ -414,8 +414,8 @@ PHP_FUNCTION(hash_init)

#define PHP_HASHCONTEXT_VERIFY(func, hash) { \
if (!hash->context) { \
php_error(E_WARNING, "%s(): supplied resource is not a valid Hash Context resource", func); \
RETURN_NULL(); \
zend_throw_error(NULL, "%s(): supplied resource is not a valid Hash Context resource", func); \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a TypeError? See discussion on #4643

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really the same case, more a bad error message. It should probably say something along the lines of "can't reuse an already finalized HashContext" or so.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. 👍

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.

6 participants