mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
- fix possible EOL conversion on svn co on windows
This commit is contained in:
parent
6c2f62c7a2
commit
81ac81c494
1 changed files with 3 additions and 0 deletions
|
@ -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) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue