PHP 4.0 Bug #8579: text files do not have \r\n translation from \n

From: Date: Sun, 07 Jan 2001 19:11:54 +0000
Subject: PHP 4.0 Bug #8579: text files do not have \r\n translation from \n
Groups: php.dev 
Request: Send a blank email to php-dev+get-43267@lists.php.net to get a copy of this message
From: dpfender@innova.net Operating system: windows 2000 Pro, IIS 5 PHP version: 4.0.4 PHP Bug Type: Filesystem function related Bug description: text files do not have \r\n translation from \n C programs that execute on Windows systems use fopen() with a "b" mode option (example, fopen(fname,"wb")) when the output string is to be written exactly as is to the file. When opened with "w", the '\n' character is automatically translated to the sequence '\r\n'. This character sequence defines the end of lines to Windows-based text programs, such as Notepad. This capability is not supported with PHP though the documentation hints that it should. Without this feature, PHP programs are not directly portable between Windows systems and Unix/Linux systems without a lot of special program coding on the part of the developer. -- Edit Bug report at: http://bugs.php.net/?id=8579&edit=1

« previous php.dev (#43267) next »