Skip to content

Commit 2ec1022

Browse files
authored
Merge pull request #89 from clue-labs/no-phpinfo
2 parents 74da6d5 + 7b4e74b commit 2ec1022

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
@@ -440,6 +440,10 @@ public final static function isSigchildEnabled()
440440
return self::$sigchild;
441441
}
442442

443+
if (!\function_exists('phpinfo')) {
444+
return self::$sigchild = false; // @codeCoverageIgnore
445+
}
446+
443447
\ob_start();
444448
\phpinfo(INFO_GENERAL);
445449

0 commit comments

Comments
 (0)