If nocache is used, then we should return an empty string result,
so the test doesn't get marked as borked.
Also limit to an occurrence at the start, just like other skip
tags.
save_text($checkFile, $code, $tempFile);
$result = trim(system_with_timeout("$php \"$checkFile\"", $env));
- if (strpos($result, 'nocache') === false) {
+ if (strpos($result, 'nocache') !== 0) {
$this->skips[$key][$code] = $result;
+ } else {
+ $result = '';
}
$this->misses++;