X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FForkController.php;h=85f3a7dc63ae482ceba688b7fe9eacab83d2d61c;hb=efe7286cac744ccc7bce5417d20601a387f6d1ad;hp=2dde17be0803e073ea7a5e69c724d38cb4eac6dc;hpb=19cd639835938da66507a1cc3623073c3217b416;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ForkController.php b/includes/ForkController.php index 2dde17be08..85f3a7dc63 100644 --- a/includes/ForkController.php +++ b/includes/ForkController.php @@ -54,7 +54,7 @@ class ForkController { const RESTART_ON_ERROR = 1; public function __construct( $numProcs, $flags = 0 ) { - if ( PHP_SAPI != 'cli' ) { + if ( !wfIsCLI() ) { throw new MWException( "ForkController cannot be used from the web." ); } $this->procsToStart = $numProcs; @@ -123,6 +123,7 @@ class ForkController { pcntl_signal_dispatch(); } else { declare( ticks = 1 ) { + // @phan-suppress-next-line PhanPluginDuplicateExpressionAssignment $status = $status; } }