X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=contrib%2Flfdb2%2Fwrite.php;h=2b25a6a69aca426be843a4d6ffc77fc92ec78e52;hb=7c94ffde02f1c2d626f9b50d43dc454dad4a073b;hp=25cdbbdb21ef829167aa9fcb786a7f9686709aeb;hpb=b4683952aea678cf8e45d95989176073961de136;p=core.git diff --git a/contrib/lfdb2/write.php b/contrib/lfdb2/write.php index 25cdbbdb..2b25a6a6 100644 --- a/contrib/lfdb2/write.php +++ b/contrib/lfdb2/write.php @@ -20,7 +20,7 @@ $__right = constant('__RIGHT_32'); $__format = constant('__FORMAT_WRITE_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'); $__left = constant('__LEFT_64'); @@ -64,6 +64,3 @@ print 'Encoded ' . strlen($str) . ' bytes into ' . strlen($encoded) . ' bytes .. file_put_contents('test.data.bin' . ($__factor * 2), $encoded); print 'File size is: ' . filesize('test.data.bin' . ($__factor * 2)) . ' bytes.' . PHP_EOL; - -// [EOF] -?>