mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 11:25:35 +08:00
Remove libxml2 requirement for linux
This commit is contained in:
@@ -527,8 +527,8 @@ abstract class BuilderBase
|
|||||||
throw new WrongUsageException("FrankenPHP SAPI requires go-mod-frankenphp package, please install it first: {$argv[0]} install-pkg go-mod-frankenphp");
|
throw new WrongUsageException("FrankenPHP SAPI requires go-mod-frankenphp package, please install it first: {$argv[0]} install-pkg go-mod-frankenphp");
|
||||||
}
|
}
|
||||||
// frankenphp needs libxml2 libs
|
// frankenphp needs libxml2 libs
|
||||||
if (!$this->getLib('libxml2')) {
|
if (PHP_OS_FAMILY === 'Darwin' && !$this->getLib('libxml2')) {
|
||||||
throw new WrongUsageException('FrankenPHP SAPI requires libxml2 library, please include `xml` extension in your build.');
|
throw new WrongUsageException('FrankenPHP SAPI for macOS requires libxml2 library, please include `xml` extension in your build.');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user