function Process::isSigchildEnabled
Returns whether PHP has been compiled with the '--enable-sigchild' option or not.
5 calls to Process::isSigchildEnabled()
- Process::close in vendor/
symfony/ process/ Process.php - Closes process resource, closes file handles, sets the exitcode.
- Process::doSignal in vendor/
symfony/ process/ Process.php - Sends a POSIX signal to the process.
- Process::getTermSignal in vendor/
symfony/ process/ Process.php - Returns the number of the signal that caused the child process to terminate its execution.
- Process::start in vendor/
symfony/ process/ Process.php - Starts the process and returns after writing the input to STDIN.
- Process::updateStatus in vendor/
symfony/ process/ Process.php - Updates the status of the process, reads pipes.
File
-
vendor/
symfony/ process/ Process.php, line 1357
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
protected function isSigchildEnabled() : bool {
if (null !== self::$sigchild) {
return self::$sigchild;
}
if (!\function_exists('phpinfo')) {
return self::$sigchild = false;
}
ob_start();
phpinfo(\INFO_GENERAL);
return self::$sigchild = str_contains(ob_get_clean(), '--enable-sigchild');
}