Re: [PHP-CVS] cvs: php4 /ext/standard file.c /main php_streams.hstreams.c

2002-10-18 Thread Rasmus Lerdorf
On October 18, 2002 04:40 pm, Rasmus Lerdorf wrote: Fixed bug #19971 (optimized the file() function). The file() function is now also binary safe. That's a bit misleading. By definition file() cannot be binary-safe in that \n is treated specially. Not quite, in the old code

Re: [PHP-CVS] cvs: php4 /ext/standard file.c /main php_streams.hstreams.c

2002-10-18 Thread Rasmus Lerdorf
But EOL is not always \n and it can be a mix of \r\n \n or \r. You have no way of knowing which eol caused the break for any particular line. In that sense file() is irreversible. Why would I care about that, the EOL are not stripped by file(), so I do not need to know EOLs when