Skip to content

Commit

Permalink
Bug in HHVM - spl_object_id returns the same value for 2 different ob…
Browse files Browse the repository at this point in the history
  • Loading branch information
bkrukowski committed Sep 13, 2018
1 parent b8241a3 commit 0be738a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Objects/HasherFactory.php
Expand Up @@ -21,7 +21,9 @@ class HasherFactory
*/
public static function create()
{
return \function_exists('spl_object_id')
// Bug in HHVM - spl_object_id returns the same value for 2 different objects
// @see https://travis-ci.org/awesomite/var-dumper/jobs/428063562
return \function_exists('spl_object_id') && !\defined('HHVM_VERSION')
? new Hasher72()
: new Hasher();
}
Expand Down

0 comments on commit 0be738a

Please sign in to comment.