|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31 file read times out
Submitted: 1998-02-03 09:26 UTC Modified: 1998-02-03 11:27 UTC
From: dhancock at arinc dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 3.0b4 OS: Windows NT 4.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
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:
Solve the problem:
18 + 24 = ?
Subscribe to this entry?

 [1998-02-03 09:26 UTC] dhancock at arinc dot com
The following script:

$maxline = 10000;
$file = fopen("foo.txt", "r");
while (!feof($file)) {
    if ($line = chop(fgets($file,$maxline))) {
        echo $line, "\n";

works fine on php3.0b3 for Win32, but on php3.0b4, I
get a 5-second delay, then a warning that php has timed

This is with php3.0b4 as downloaded from  I'm not
modifying php3.ini in any way, and the only differences
between the ini files for the two versions is on the last
line (browsercap.ini).

My data file (foo.txt) looks like this (although it
shouldn't matter):


I'm definitely new to PHP, so feel free to point me
to any resource I need to understand this.  I really
think this looks like a bug, but I won't discount the
possibility that it's a PEBCAK (problem exists between
chair and keyboard).

David Hancock |


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-03 11:27 UTC] shane
This is fixed now.
 [2019-10-01 15:28 UTC]
Automatic comment on behalf of
Log: Fix #31: Cleanup assumes wrong Opcache base address filename
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 23:01:31 2024 UTC