mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
fix libxml2 patch for older php (limit only to 80, 81)
This commit is contained in:
@@ -337,7 +337,7 @@ class SourcePatcher
|
|||||||
$file = file_get_contents(SOURCE_PATH . '/php-src/main/php_version.h');
|
$file = file_get_contents(SOURCE_PATH . '/php-src/main/php_version.h');
|
||||||
if (preg_match('/PHP_VERSION_ID (\d+)/', $file, $match) !== 0) {
|
if (preg_match('/PHP_VERSION_ID (\d+)/', $file, $match) !== 0) {
|
||||||
$ver_id = intval($match[1]);
|
$ver_id = intval($match[1]);
|
||||||
if ($ver_id < 80100) {
|
if ($ver_id < 80100 && $ver_id >= 80000) {
|
||||||
self::patchFile('spc_fix_libxml2_12_php80.patch', SOURCE_PATH . '/php-src');
|
self::patchFile('spc_fix_libxml2_12_php80.patch', SOURCE_PATH . '/php-src');
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user