Skip to content

Commit

Permalink
fix libxml2 patch for older php (limit only to 80, 81)
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywhalecc committed Jun 4, 2024
1 parent eff698c commit 1ae1c81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SPC/store/SourcePatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,10 @@ public static function patchPhpLibxml212(): bool
$file = file_get_contents(SOURCE_PATH . '/php-src/main/php_version.h');
if (preg_match('/PHP_VERSION_ID (\d+)/', $file, $match) !== 0) {
$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');
return true;
}
Expand Down

0 comments on commit 1ae1c81

Please sign in to comment.