Skip to content

Commit 7b4e74b

Browse files
committed
Skip sigchild check if phpinfo() has been disabled
1 parent 45e6e3a commit 7b4e74b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Process.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@ public final static function isSigchildEnabled()
438438
return self::$sigchild;
439439
}
440440

441+
if (!\function_exists('phpinfo')) {
442+
return self::$sigchild = false; // @codeCoverageIgnore
443+
}
444+
441445
\ob_start();
442446
\phpinfo(INFO_GENERAL);
443447

0 commit comments

Comments
 (0)