Skip to content

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