PHP 4.0 Bug #3960: fgets() and Mac text

From: Date: Wed, 29 Mar 2000 18:42:15 +0000
Subject: PHP 4.0 Bug #3960: fgets() and Mac text
Groups: php.dev 
Request: Send a blank email to php-dev+get-17354@lists.php.net to get a copy of this message
From: chugadie.geo@yahoo.com Operating system: Linux redhat 5.2 PHP version: 4.0 Beta 4 Patch Level 1 PHP Bug Type: Misbehaving function Bug description: fgets() and Mac text fgets() does not stop when it hits a newline in a text file produced from a Mac machine. Search and replacing all the newlines with newlines in the Mac ascii file on a PC machine alleviates this problem. This problem did not exist in php4.0b3 as I have two systems, one with b3 and one with b4l1 and they behave differently when given a tab delimited file produced from a Mac. Hexediting the files on a PC reveals that 0D0A represents a newline in BOTH the files.

« previous php.dev (#17354) next »