|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: dhancock at arinc dot com
New email:
PHP Version: OS:


 [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: Fri May 24 07:01:35 2024 UTC