don't force invalidate php-src if the download option is explicitly passed

This commit is contained in:
DubbleClick 2025-06-02 12:00:20 +07:00
parent 108bf34cca
commit ed87a7cd67

View File

@ -77,8 +77,6 @@ class CraftCommand extends BaseCommand
$args[] = '--with-php=' . $craft['php-version'];
if (!array_key_exists('ignore-cache-sources', $craft['download-options']) || $craft['download-options']['ignore-cache-sources'] === false) {
$craft['download-options']['ignore-cache-sources'] = 'php-src';
} elseif ($craft['download-options']['ignore-cache-sources'] !== null) {
$craft['download-options']['ignore-cache-sources'] .= ',php-src';
}
}
$this->optionsToArguments($craft['download-options'], $args);
@ -144,7 +142,6 @@ class CraftCommand extends BaseCommand
});
} elseif (extension_loaded('pcntl')) {
pcntl_signal(SIGINT, function () use ($process) {
/* @noinspection PhpComposerExtensionStubsInspection */
$process->signal(SIGINT);
});
} else {