You are here

protected function Process::isSigchildEnabled in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Process.php \Symfony\Component\Process\Process::isSigchildEnabled()

Returns whether PHP has been compiled with the '--enable-sigchild' option or not.

Return value

bool

9 calls to Process::isSigchildEnabled()
Process::doSignal in vendor/symfony/process/Process.php
Sends a POSIX signal to the process.
Process::getDescriptors in vendor/symfony/process/Process.php
Creates the descriptors needed by the proc_open.
Process::getExitCode in vendor/symfony/process/Process.php
Returns the exit code returned by the process.
Process::getPid in vendor/symfony/process/Process.php
Returns the Pid (process identifier), if applicable.
Process::getTermSignal in vendor/symfony/process/Process.php
Returns the number of the signal that caused the child process to terminate its execution.

... See full list

1 method overrides Process::isSigchildEnabled()
ProcessInSigchildEnvironment::isSigchildEnabled in vendor/symfony/process/Tests/ProcessInSigchildEnvironment.php
Returns whether PHP has been compiled with the '--enable-sigchild' option or not.

File

vendor/symfony/process/Process.php, line 1320

Class

Process
Process is a thin wrapper around proc_* functions to easily start independent PHP processes.

Namespace

Symfony\Component\Process

Code

protected function isSigchildEnabled() {
  if (null !== self::$sigchild) {
    return self::$sigchild;
  }
  if (!function_exists('phpinfo')) {
    return self::$sigchild = false;
  }
  ob_start();
  phpinfo(INFO_GENERAL);
  return self::$sigchild = false !== strpos(ob_get_clean(), '--enable-sigchild');
}