X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=includes%2FForkController.php;h=85f3a7dc63ae482ceba688b7fe9eacab83d2d61c;hb=53fe91ded58c3be587a025984c7051c01be2fedc;hp=2dde17be0803e073ea7a5e69c724d38cb4eac6dc;hpb=939199bcea28a3b13c49c0f808d11d415660b924;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; } }