From: Antony Dovgal Date: Mon, 5 Jan 2009 09:18:57 +0000 (+0000) Subject: only add "# original source" if a redirect is active X-Git-Tag: php-5.4.0alpha1~191^2~4637 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a06642ab08414ccac2325e2b079e9890a27d999;p=php only add "# original source" if a redirect is active --- diff --git a/run-tests.php b/run-tests.php index f89535c5d3..82f7b24152 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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");