Bug #11460 Updated: \n or \r\n?
| From: | sniper@php.net | Date: | Wed, 13 Jun 2001 17:35:28 +0000 |
| Subject: | Bug #11460 Updated: \n or \r\n? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57028@lists.php.net to get a copy of this message | ||
ID: 11460
Updated by: sniper
Reported By: wuxinan@stanford.edu
Old-Status: Open
Status: Bogus
Bug Type: Unknown/Other Function
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
Yeah, isn't Windows buggy shit or not?
Send a bug report to them.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-13 05:05:04] wuxinan@stanford.edu
the thing is, my PHP running in CGI PHP and module PHP (PHP running as a module of Apache 1.3.20)
have different results. PHP is not portable!
use fread() and .= operation, I read the entire file into a string, and use count(split(string,
"n")); to find out how many lines there. This basically works well if this PHP file is
invoked by PHP module.
However, this doesn't work if PHP is running in CGI mode.
I have to change to "rn" then the script gives the same result.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11460&edit=2