com php-src: Fix test on systems where EOL isn't "\n", like Windows: ext/openssl/tests/008.phpt

From: Date: Wed, 08 Apr 2015 21:56:29 +0000
Subject: com php-src: Fix test on systems where EOL isn't "\n", like Windows: ext/openssl/tests/008.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86143@lists.php.net to get a copy of this message
Commit: 8d3c4e59886a12f2be78d668efb7376a5b9f0b9e Author: Kalle Sommer Nielsen <kalle@php.net> Wed, 8 Apr 2015 23:56:29 +0200 Parents: 5ba72e5f80d5bea2370f87e5968d1103cda8925c Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8d3c4e59886a12f2be78d668efb7376a5b9f0b9e Log: Fix test on systems where EOL isn't "\n", like Windows Changed paths: M ext/openssl/tests/008.phpt Diff: diff --git a/ext/openssl/tests/008.phpt b/ext/openssl/tests/008.phpt index 8963864..171ca27 100644 --- a/ext/openssl/tests/008.phpt +++ b/ext/openssl/tests/008.phpt @@ -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)

« previous php.cvs (#86143) next »