mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
only add "# original source" if a redirect is active
This commit is contained in:
parent
a26c94c7d9
commit
9a06642ab0
@ -1870,7 +1870,9 @@ COMMAND $cmd
|
||||
|
||||
// write .diff
|
||||
$diff = generate_diff($wanted, $wanted_re, $output);
|
||||
$diff = "# original source file: $shortname\n" . $diff;
|
||||
if (is_array($IN_REDIRECT)) {
|
||||
$diff = "# original source file: $shortname\n" . $diff;
|
||||
}
|
||||
show_file_block('diff', $diff);
|
||||
if (strpos($log_format, 'D') !== false && file_put_contents($diff_filename, (binary) $diff, FILE_BINARY) === false) {
|
||||
error("Cannot create test diff - $diff_filename");
|
||||
|
Loading…
Reference in New Issue
Block a user