瀏覽代碼

Replace version_compare() in index.php.dist with PHP_VERSION_ID

Daniel Rudolf 9 年之前
父節點
當前提交
ce508fab6b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      index.php.dist

+ 1 - 1
index.php.dist

@@ -1,7 +1,7 @@
 <?php // @codingStandardsIgnoreFile
 <?php // @codingStandardsIgnoreFile
 
 
 // check PHP version
 // check PHP version
-if (version_compare(PHP_VERSION, '5.3.6', '<')) {
+if (PHP_VERSION_ID < 50306) {
     die('Pico requires PHP 5.3.6 or above to run');
     die('Pico requires PHP 5.3.6 or above to run');
 }
 }