mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-08 09:25:35 +08:00
cs fix
This commit is contained in:
@@ -461,7 +461,9 @@ class SourcePatcher
|
|||||||
if (file_exists(SOURCE_PATH . '/php-src/main/php_version.h')) {
|
if (file_exists(SOURCE_PATH . '/php-src/main/php_version.h')) {
|
||||||
$file = SOURCE_PATH . '/php-src/main/php_version.h';
|
$file = SOURCE_PATH . '/php-src/main/php_version.h';
|
||||||
$cnt = preg_match('/PHP_VERSION "(\d+\.\d+\.\d+)"/', file_get_contents($file), $match);
|
$cnt = preg_match('/PHP_VERSION "(\d+\.\d+\.\d+)"/', file_get_contents($file), $match);
|
||||||
if (!$cnt) return false;
|
if (!$cnt) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$version = $match[1];
|
$version = $match[1];
|
||||||
}
|
}
|
||||||
if (version_compare($version, '8.3.16', '<')) {
|
if (version_compare($version, '8.3.16', '<')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user