]> granicus.if.org Git - php/commitdiff
Don't use CRLF when generating diffs
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 24 Jan 2020 11:28:37 +0000 (12:28 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 24 Jan 2020 11:28:37 +0000 (12:28 +0100)
run-tests.php

index 1b0a7e202ff43f8ea2e934c08bbb4b3d33fe9daa..4de196d39d73284ce0685a700d7a96f4d676ecde 100755 (executable)
@@ -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)