Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a5d9401

Browse files
PCNTL no longer needed
1 parent 790678c commit a5d9401

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

‎build/composer-require-checker.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"Reflection",
2020
"SPL",
2121
"standard",
22-
"pcntl",
2322
"mbstring",
2423
"hash",
2524
"tokenizer",

‎src/Command/CommandHelper.php‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
use function count;
4040
use function dirname;
4141
use function error_get_last;
42-
use function function_exists;
4342
use function get_class;
4443
use function getcwd;
4544
use function gettype;
@@ -51,8 +50,6 @@
5150
use function is_readable;
5251
use function is_string;
5352
use function mkdir;
54-
use function pcntl_async_signals;
55-
use function pcntl_signal;
5653
use function register_shutdown_function;
5754
use function sprintf;
5855
use function str_ends_with;
@@ -62,7 +59,6 @@
6259
use const DIRECTORY_SEPARATOR;
6360
use const E_ERROR;
6461
use const PHP_VERSION_ID;
65-
use const SIGINT;
6662

6763
class CommandHelper
6864
{
@@ -354,7 +350,6 @@ public static function begin(
354350
throw new InceptionNotSuccessfulException();
355351
}
356352

357-
self::setUpSignalHandler($errorOutput);
358353
/** @var bool|null $customRulesetUsed */
359354
$customRulesetUsed = $container->getParameter('customRulesetUsed');
360355
if ($customRulesetUsed === null) {
@@ -498,19 +493,6 @@ private static function executeBootstrapFile(
498493
}
499494
}
500495

501-
private static function setUpSignalHandler(Output $output): void
502-
{
503-
if (!function_exists('pcntl_signal')) {
504-
return;
505-
}
506-
507-
pcntl_async_signals(true);
508-
pcntl_signal(SIGINT, static function () use ($output): void {
509-
$output->writeLineFormatted('');
510-
exit(1);
511-
});
512-
}
513-
514496
/**
515497
* @param string[] $configFiles
516498
* @param array<string, string> $loaderParameters

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /