diff --git a/lib/Model/AbstractModel.php b/lib/Model/AbstractModel.php index a1144d13..cdfc81dc 100644 --- a/lib/Model/AbstractModel.php +++ b/lib/Model/AbstractModel.php @@ -108,7 +108,7 @@ abstract class AbstractModel $this->_data = $data; // calculate a 64 bit checksum to avoid collisions - $this->setId(hash(version_compare(PHP_VERSION, '5.5', '>') ? 'fnv1a64' : 'fnv164', $data['ct'])); + $this->setId(hash(version_compare(PHP_VERSION, '5.6', '<') ? 'fnv164' : 'fnv1a64', $data['ct'])); } /** diff --git a/tst/Bootstrap.php b/tst/Bootstrap.php index dac2a203..bd24ea79 100644 --- a/tst/Bootstrap.php +++ b/tst/Bootstrap.php @@ -111,7 +111,7 @@ class Helper */ public static function getPasteId() { - return version_compare(PHP_VERSION, '5.5', '>') ? self::$pasteid : hash('fnv164', self::$pasteV2['ct']); + return version_compare(PHP_VERSION, '5.6', '<') ? hash('fnv164', self::$pasteV2['ct']) : self::$pasteid; } /**