This commit is contained in:
DubbleClick 2025-06-05 20:14:02 +07:00
parent 01a79fcc6e
commit 8b94a7174f

View File

@ -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', '<')) {