1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 00:48:25 +02:00

- 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 0e0386cc67
commit 2b3997d898
@@ -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) );