mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
- MFH Section FILE does not exist for redirection tests
This commit is contained in:
parent
c98ef984d8
commit
b8572a0c9c
@ -961,7 +961,9 @@ TEST $file
|
|||||||
if (!is_dir(dirname($copy_file))) {
|
if (!is_dir(dirname($copy_file))) {
|
||||||
@mkdir(dirname($copy_file), 0777, true) or error("Cannot create output directory - " . 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(
|
$temp_filenames = array(
|
||||||
'file' => $copy_file,
|
'file' => $copy_file,
|
||||||
'diff' => $diff_filename,
|
'diff' => $diff_filename,
|
||||||
@ -1641,7 +1643,7 @@ function show_result($result, $tested, $tested_file, $extra = '', $temp_filename
|
|||||||
|
|
||||||
if ($html_output)
|
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']);
|
$url = str_replace($temp_target, $temp_urlbase, $temp_filenames['file']);
|
||||||
$tested = "<a href='$url'>$tested</a>";
|
$tested = "<a href='$url'>$tested</a>";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user