From: Antony Dovgal Date: Mon, 5 Jan 2009 09:19:09 +0000 (+0000) Subject: MFH: only add "# original source" if a redirect is active X-Git-Tag: php-5.3.0beta1~274 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fde1c3d3328f27bb49ee68383a4681808bdad2fd;p=php MFH: only add "# original source" if a redirect is active --- diff --git a/run-tests.php b/run-tests.php index 47dc73c8f7..c7ab0410da 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");