- fix possible EOL conversion on svn co on windows

This commit is contained in:
Pierre Joye 2010-01-28 00:05:37 +00:00
parent 6c2f62c7a2
commit 81ac81c494

View file

@ -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) );