Skip to content

Commit

Permalink
Bypass sigchild detection if phpinfo is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Feb 18, 2014
1 parent c4ffe02 commit 714aee9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/Process/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,10 @@ protected function isSigchildEnabled()
return self::$sigchild;
}

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

ob_start();
phpinfo(INFO_GENERAL);

Expand Down

0 comments on commit 714aee9

Please sign in to comment.