N°9675 - geptile PR fixes + enhance regexp for cli php version

This commit is contained in:
odain
2026-07-01 17:51:13 +02:00
parent e27dcbfb2d
commit 7a70e2460a
3 changed files with 17 additions and 6 deletions

View File

@@ -93,7 +93,7 @@ class ModelReflectionSerializer
public function CheckCliPhpVersionFromOutput(string $sUIPhpVersion, string $sPHPExec, $aOutput): void
{
$sFoundVersion = trim($aOutput[0] ?? "");
if (preg_match('/^.* (\d\.\d)\.\d/', $sFoundVersion, $aMatches)) {
if (preg_match('/(\d+\.\d+)(?:\.\d+)?/', $sFoundVersion, $aMatches)) {
$sFoundVersion = $aMatches[1];
}
if ($sFoundVersion != $sUIPhpVersion) {