public function Process::getExitCodeText

Returns a string representation for the exit code returned by the process.

This method relies on the Unix exit code status standardization and might not be relevant for other operating systems.

Return value

string A string representation for the exit status code

See also

http://tldp.org/LDP/abs/html/exitcodes.html

http://en.wikipedia.org/wiki/Unix_signal

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Process.php, line 599

Class

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

Namespace

Symfony\Component\Process

Code

public function getExitCodeText() {
  $exitcode = $this
    ->getExitCode();
  return isset(self::$exitCodes[$exitcode]) ? self::$exitCodes[$exitcode] : 'Unknown error';
}