diff options
author | Marcus Boerger <helly@php.net> | 2005-12-09 09:50:30 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-12-09 09:50:30 +0000 |
commit | b8572a0c9cac5900dbbeeb0338ff307de3ec2da3 (patch) | |
tree | 9c320ba59da14ff73215dbb0107be5671c9a421e /run-tests.php | |
parent | c98ef984d8c9d4e0f89e4d363e264c85bb7cff38 (diff) | |
download | php-git-b8572a0c9cac5900dbbeeb0338ff307de3ec2da3.tar.gz |
- MFH Section FILE does not exist for redirection tests
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php index 3e38570740..7b30e3308e 100755 --- a/run-tests.php +++ b/run-tests.php @@ -961,7 +961,9 @@ TEST $file if (!is_dir(dirname($copy_file))) { @mkdir(dirname($copy_file), 0777, true) or error("Cannot create output directory - " . dirname($copy_file)); } - save_text($copy_file, $section_text['FILE']); + if (isset($section_text['FILE'])) { + save_text($copy_file, $section_text['FILE']); + } $temp_filenames = array( 'file' => $copy_file, 'diff' => $diff_filename, @@ -1641,7 +1643,7 @@ function show_result($result, $tested, $tested_file, $extra = '', $temp_filename if ($html_output) { - if (isset($temp_filenames['file'])) { + if (isset($temp_filenames['file']) && @file_exists($temp_filenames['file'])) { $url = str_replace($temp_target, $temp_urlbase, $temp_filenames['file']); $tested = "<a href='$url'>$tested</a>"; } |