From 7b4e74b36cdf265cecebfb382523102f8a5ef48a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Thu, 7 Oct 2021 08:42:38 +0200 Subject: [PATCH] Skip sigchild check if `phpinfo()` has been disabled --- src/Process.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Process.php b/src/Process.php index 9e876b4..f9c06b7 100644 --- a/src/Process.php +++ b/src/Process.php @@ -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);