Returns the exit code returned by the process.
@api
integer The exit status code
RuntimeException In case --enable-sigchild is activated and the sigchild compatibility mode is disabled
public function getExitCode() {
if ($this
->isSigchildEnabled() && !$this->enhanceSigchildCompatibility) {
throw new RuntimeException('This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method');
}
$this
->updateStatus();
return $this->exitcode;
}