Fatal error with hash_equals() on WordPress 3.9.2
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.
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
Thanks. Is there a way this can be changed to a warning instead of a fatal error in HipHop too?
@MarkGavalda #3479
That was fast, thanks Tim! :)