X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=contrib%2Flfdb2%2Fread.php;h=da41e10278a6e2a80f8fa0dda4c2471b5df098bc;hb=d9d2b0266fc21f4664087a8488d05c6d6068073b;hp=8779b654ff2e9f4275daa9786726262644d0f841;hpb=b4683952aea678cf8e45d95989176073961de136;p=core.git diff --git a/contrib/lfdb2/read.php b/contrib/lfdb2/read.php index 8779b654..da41e102 100644 --- a/contrib/lfdb2/read.php +++ b/contrib/lfdb2/read.php @@ -14,7 +14,7 @@ $__factor = constant('__FACTOR_32'); $__format = constant('__FORMAT_READ_32'); $__step = constant('__STEP_32'); -if ((isset($_SERVER['argv'][1])) && ($_SERVER['argv'][1] == '-64')) { +if (PHP_INT_SIZE === 8) { // Use 64-bit $__factor = constant('__FACTOR_64'); $__format = constant('__FORMAT_READ_64'); @@ -65,6 +65,3 @@ $decoded = gzuncompress($decoded); print 'Writing ' . strlen($decoded) . ' bytes to output ...' . PHP_EOL; file_put_contents('test.data.out' . ($__factor * 2), $decoded); - -// [EOF] -?>