php/php-src — pull request #792 by dunglas (2014-08-31 00:30:32+00:00)
Title: hash_equals: Don't leak length difference.

`hash_equals` leaks difference in length of compared strings (this is a documented behavior).
This implementation ported from Symfony don't.

The discussion started in a try to use `hash_equals` in Symfony: https://github.com/symfony/symfony/pull/11797

(Reopened against the 5.6 branch.)