From 81ac81c494673b79cd4c31c944ab9e2081b80c16 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 28 Jan 2010 00:05:37 +0000 Subject: [PATCH] - fix possible EOL conversion on svn co on windows --- ext/standard/tests/file/fflush_basic.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/standard/tests/file/fflush_basic.phpt b/ext/standard/tests/file/fflush_basic.phpt index 5cd81d7aa2..7e8cba7188 100755 --- a/ext/standard/tests/file/fflush_basic.phpt +++ b/ext/standard/tests/file/fflush_basic.phpt @@ -20,6 +20,9 @@ $filename = "$file_path/fflush_basic.tmp"; $file_handle = fopen($filename, "w"); if($file_handle == false) exit("Error:failed to open file $filename"); +if(substr(PHP_OS, 0, 3) == "WIN") { + $data = str_replace("\r",'', $data); +} // writing data to the file var_dump( fwrite($file_handle, $data) ); -- 2.49.0