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|null A string representation for the exit status code, null if the Process is not terminated
See also
http://tldp.org/LDP/abs/html/exitcodes.html
http://en.wikipedia.org/wiki/Unix_signal
File
-
vendor/
symfony/ process/ Process.php, line 779
Class
- Process
- Process is a thin wrapper around proc_* functions to easily start independent PHP processes.
Namespace
Symfony\Component\ProcessCode
public function getExitCodeText() : ?string {
if (null === ($exitcode = $this->getExitCode())) {
return null;
}
return self::$exitCodes[$exitcode] ?? 'Unknown error';
}