Fix display PHP version when using archive

This commit is contained in:
crazywhalecc
2024-11-03 01:17:30 +08:00
committed by Jerry Ma
parent 6fa5f75963
commit 12b119e235

View File

@@ -276,7 +276,7 @@ abstract class BuilderBase
return false; return false;
} }
} }
if (preg_match('/php-(\d+\.\d+\.\d+)/', $file, $match)) { if (preg_match('/php-(\d+\.\d+\.\d+(?:RC\d+)?)\.tar\.(?:gz|bz2|xz)/', $file, $match)) {
return $match[1]; return $match[1];
} }
return false; return false;