hathor-cpp-scanner/tests/phpChecks

13 lines
369 B
Plaintext
Raw Normal View History

2016-06-13 08:27:43 -07:00
#!/usr/bin/env php
<?php
$phpRequired = "5.6.0";
try {
if( !version_compare( PHP_VERSION, "5.6.0", ">=") ):
throw new Exception(sprintf("\n\x1b[41;1m[error] : PHP Version \x1b[4m%s\x1b[0m\x1b[41;1m \x1b[37;1mor above is required, please update.\n\n", $phpRequired));
endif;
} catch (Exception $e) {
fwrite(STDERR, $e->getMessage()) . PHP_EOL;
exit(255);
}