mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
fix libxml2 patch for older php (limit only to 80, 81)
This commit is contained in:
parent
eff698cbe8
commit
1ae1c81f9c
@ -337,7 +337,10 @@ 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 && $ver_id >= 80000) {
|
if ($ver_id < 80000) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if ($ver_id < 80100) {
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user