Skip to content

Commit

Permalink
Skip sigchild check if phpinfo() has been disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Oct 7, 2021
1 parent 45e6e3a commit 7b4e74b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ public final static function isSigchildEnabled()
return self::$sigchild;
}

if (!\function_exists('phpinfo')) {
return self::$sigchild = false; // @codeCoverageIgnore
}

\ob_start();
\phpinfo(INFO_GENERAL);

Expand Down

0 comments on commit 7b4e74b

Please sign in to comment.