Date: 01/08/01
- Next message: Thies C. Arntzen: "[PHP-DEV] patch to allow file-uploads in safe_mode without user-id fiddleing"
- Previous message: Stig Venaas: "Re: [PHP-DEV] http://bugs.php.net/bugs.php?id=8409"
- Next in thread: dpfender <email protected>: "[PHP-DEV] PHP 4.0 Bug #8579 Updated: text files do not have \r\n translation from \n"
- Maybe reply: dpfender <email protected>: "[PHP-DEV] PHP 4.0 Bug #8579 Updated: text files do not have \r\n translation from \n"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 8579
Updated by: stas
Reported By: dpfender <email protected>
Old-Status: Open
Status: Closed
Bug Type: Filesystem function related
Assigned To:
Comments:
fopen uses whatever mode you give it. The rest of functions
(like "system") use 'b' modes, since they are meant to pass
the data unchanged. If you have a code that uses fopen and
it ignores 'b', please reopen the report and post the code,
otherwise - you are getting the intended behaviour.
Previous Comments:
---------------------------------------------------------------------------
[2001-01-07 14:11:54] dpfender <email protected>
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 'rn'. 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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8579
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Thies C. Arntzen: "[PHP-DEV] patch to allow file-uploads in safe_mode without user-id fiddleing"
- Previous message: Stig Venaas: "Re: [PHP-DEV] http://bugs.php.net/bugs.php?id=8409"
- Next in thread: dpfender <email protected>: "[PHP-DEV] PHP 4.0 Bug #8579 Updated: text files do not have \r\n translation from \n"
- Maybe reply: dpfender <email protected>: "[PHP-DEV] PHP 4.0 Bug #8579 Updated: text files do not have \r\n translation from \n"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

