mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Fix test on systems where EOL isn't "\n", like Windows
This commit is contained in:
parent
5ba72e5f80
commit
8d3c4e5988
@ -38,11 +38,16 @@ if ($exists) {
|
||||
}
|
||||
echo "---\n";
|
||||
|
||||
if (PHP_EOL !== "\n") {
|
||||
$a = str_replace(PHP_EOL, "\n", $a);
|
||||
}
|
||||
|
||||
var_dump(strcmp($output, $a));
|
||||
var_dump(strcmp($output, $output2));
|
||||
var_dump(strcmp($output, $output3));
|
||||
var_dump(strcmp($output, $output4)); // different
|
||||
var_dump(strcmp($output, $output5)); // different
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(true)
|
||||
|
Loading…
Reference in New Issue
Block a user