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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
25 - 8 = ?
Subscribe to this entry?

 
 [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

Pull Requests

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 Oct 31 23:01:28 2024 UTC