We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 097af80 commit c207269Copy full SHA for c207269
1 file changed
src/StaticPHP/Package/PackageInstaller.php
@@ -755,6 +755,14 @@ private function printArrayInfo(array $info): void
755
private function validatePackagesBeforeBuild(): void
756
{
757
foreach ($this->packages as $package) {
758
+ // Check OS support for php-extension packages
759
+ if ($package instanceof PhpExtensionPackage && !$package->isSupportedOnCurrentOS()) {
760
+ $supported = implode(', ', $package->getSupportedOSList());
761
+ throw new WrongUsageException(
762
+ "Extension '{$package->getName()}' is not supported on current OS: " . SystemTarget::getTargetOS() .
763
+ ". Supported OS: [{$supported}]"
764
+ );
765
+ }
766
if ($package->getType() !== 'library') {
767
continue;
768
}
0 commit comments