hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

Fatal error with hash_equals() on WordPress 3.9.2

Open MarkGavalda opened this issue 12 years ago • 4 comments

Recently we started experiencing the following error with most of our WordPress based sites: \nFatal error: Argument 2 passed to hash_equals() must be an instance of string, null given in /var/www/xyz.com/wp-includes/pluggable.php on line 1662

It seems that a fresh WP install with the default theme doesn't do it, only some of the premium themes, old, new, recently updated, doesn't matter.

This sites have been running on HHVM since May, they were left pretty much intact! I would say that this new bug correlates with the release of WP 3.9.2 but I can't be sure :(

We're using daily builds of HHVM, this is still happening with tonight's build too.

MarkGavalda avatar Aug 15 '14 08:08 MarkGavalda

Passing anything different to hash_equals is wrong and will fail as well in php. They however issue a warning rather than fatal.

https://github.com/php/php-src/blob/8b66d64b2343bc4fd8aeabb690024edb850a0155/ext/hash/hash.c#L725-759

SiebelsTim avatar Aug 15 '14 09:08 SiebelsTim

Thanks. Is there a way this can be changed to a warning instead of a fatal error in HipHop too?

MarkGavalda avatar Aug 15 '14 11:08 MarkGavalda

@MarkGavalda #3479

SiebelsTim avatar Aug 15 '14 11:08 SiebelsTim

That was fast, thanks Tim! :)

MarkGavalda avatar Aug 15 '14 12:08 MarkGavalda