mirror of
https://github.com/php/php-src.git
synced 2026-03-26 17:22:15 +01:00
- fix possible EOL conversion on svn co on windows
This commit is contained in:
@@ -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) );
|
||||
|
||||
Reference in New Issue
Block a user