]> git.mxchange.org Git - core.git/blobdiff - contrib/lfdb2/write.php
Continued:
[core.git] / contrib / lfdb2 / write.php
index 25cdbbdb21ef829167aa9fcb786a7f9686709aeb..2b25a6a69aca426be843a4d6ffc77fc92ec78e52 100644 (file)
@@ -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]
-?>