$data .= $line;
}
}
+ $stat = proc_get_status($proc);
+ if ($stat['signaled']) {
+ $data .= "\nTermsig=".$stat['stopsig'];
+ }
$code = proc_close($proc);
return $data;
}
$reason = (ereg("^info[[:space:]]*(.+)\$", trim($output))) ? ereg_replace("^info[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE;
if ($reason) {
$info = " (info: $reason)";
- $tested .= $info;
}
}
if (eregi("^warn", trim($output))) {
if ($reason) {
$warn = true; /* only if there is a reason */
$info = " (warn: $reason)";
- $tested .= $info;
}
}
}