Skip to content

Commit 1ae1c81

Browse files
committed
fix libxml2 patch for older php (limit only to 80, 81)
1 parent eff698c commit 1ae1c81

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/SPC/store/SourcePatcher.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,10 @@ public static function patchPhpLibxml212(): bool
337337
$file = file_get_contents(SOURCE_PATH . '/php-src/main/php_version.h');
338338
if (preg_match('/PHP_VERSION_ID (\d+)/', $file, $match) !== 0) {
339339
$ver_id = intval($match[1]);
340-
if ($ver_id < 80100 && $ver_id >= 80000) {
340+
if ($ver_id < 80000) {
341+
return false;
342+
}
343+
if ($ver_id < 80100) {
341344
self::patchFile('spc_fix_libxml2_12_php80.patch', SOURCE_PATH . '/php-src');
342345
return true;
343346
}

0 commit comments

Comments
 (0)