mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
don't force invalidate php-src if the download option is explicitly passed
This commit is contained in:
parent
108bf34cca
commit
ed87a7cd67
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user