mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
cs fix
This commit is contained in:
parent
01a79fcc6e
commit
8b94a7174f
@ -461,7 +461,9 @@ class SourcePatcher
|
||||
if (file_exists(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);
|
||||
if (!$cnt) return false;
|
||||
if (!$cnt) {
|
||||
return false;
|
||||
}
|
||||
$version = $match[1];
|
||||
}
|
||||
if (version_compare($version, '8.3.16', '<')) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user