summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-01-24 12:28:37 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-01-24 12:28:37 +0100
commitc6cf354a9acd3d79f3b9fbf08c85aff4c7433bd3 (patch)
treee3cc00100c13683de05f56130a96c3232ae4c3fc /run-tests.php
parent47b1a58e966f7b031fcba3b2dfebff591e084ce4 (diff)
downloadphp-git-c6cf354a9acd3d79f3b9fbf08c85aff4c7433bd3.tar.gz
Don't use CRLF when generating diffs
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index 1b0a7e202f..4de196d39d 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -2901,7 +2901,7 @@ function generate_diff($wanted, $wanted_re, $output)
$r = is_null($wanted_re) ? $w : explode("\n", $wanted_re);
$diff = generate_array_diff($r, $o, !is_null($wanted_re), $w);
- return implode("\r\n", $diff);
+ return implode(PHP_EOL, $diff);
}
function error($message)