php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13930 file() missing line 1
Submitted: 2001-11-05 02:11 UTC Modified: 2001-11-11 02:17 UTC
From: rich67dev at hotmail dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.6 OS: OSX
Private report: No CVE-ID: None
 [2001-11-05 02:11 UTC] rich67dev at hotmail dot com
It would seem that file() and other related functions do 
not read the first line on OSX.  I tested this on another 
non- OSX bsd box - and reads from line 1 were fine.  I have 
also tested this in the past on Linux (RedHat 6.2 in 
particular)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-10 04:05 UTC] sniper@php.net
This should be fixed in CVS. Could you please try the
latest CVS snapshot from http://snaps.php.net/ and if 
it doesn't work, reopen this bug report.

 [2001-11-11 02:17 UTC] rich67dev at hotmail dot com
This also may be my bad - due to lack of experience with 
this particular function.  Anyway, what is really going on 
is that if you do not include a file extenstion such as txt 
or .sql etc the function starts reading from line two.  So, 
the problem is actually not tied to OSX.  

Thanks nonetheless,
Regards
RBS
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 16 09:01:32 2024 UTC