Skip to content

Commit b8d453d

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: - Fixed bug #62415 (Undefined variable: diff in run-tests.php on line 2093 for successful XFAIL)
2 parents ed1f058 + 75d8af7 commit b8d453d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

run-tests.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2089,8 +2089,10 @@ function run_test($php, $file, $env)
20892089
if (isset($old_php)) {
20902090
$php = $old_php;
20912091
}
2092+
2093+
$diff = empty($diff) ? '' : "<![CDATA[\n " . preg_replace('/\e/', '<esc>', $diff) . "\n]]>";
20922094

2093-
junit_mark_test_as($restype, str_replace($cwd . '/', '', $tested_file), $tested, null, $info, "<![CDATA[\n " . preg_replace('/\e/', '<esc>', $diff) . "\n]]>");
2095+
junit_mark_test_as($restype, str_replace($cwd . '/', '', $tested_file), $tested, null, $info, $diff);
20942096

20952097
return $restype[0] . 'ED';
20962098
}

0 commit comments

Comments
 (0)