From: Aaron Schulz Date: Sat, 5 Dec 2015 21:31:07 +0000 (-0800) Subject: Fix IDEA error in intervalsSinceGregorianBinary() X-Git-Tag: 1.31.0-rc.0~8798 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=fc428b1670ef69a07aa5e31e0f36fa19643e02a6;p=lhc%2Fweb%2Fwiklou.git Fix IDEA error in intervalsSinceGregorianBinary() Change-Id: Icc90a3050d5d918176dfbb88636a4d9b742fd4b0 --- diff --git a/includes/utils/UIDGenerator.php b/includes/utils/UIDGenerator.php index 468ab4a16b..6171d58613 100644 --- a/includes/utils/UIDGenerator.php +++ b/includes/utils/UIDGenerator.php @@ -554,7 +554,7 @@ class UIDGenerator { list( $sec, $msec ) = $time; $offset = '122192928000000000'; if ( PHP_INT_SIZE >= 8 ) { // 64 bit integers - $ts = ( 1000 * $sec + $msec ) * 10000 + $offset + $delta; + $ts = ( 1000 * $sec + $msec ) * 10000 + (int)$offset + $delta; $id_bin = str_pad( decbin( $ts % pow( 2, 60 ) ), 60, '0', STR_PAD_LEFT ); } elseif ( extension_loaded( 'gmp' ) ) { $ts = gmp_add( gmp_mul( (string) $sec, '1000' ), (string) $msec ); // ms