|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-02-03 11:27 UTC] shane
[2019-10-01 15:28 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 16:00:02 2025 UTC |
The following script: <?php $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 out. This is with php3.0b4 as downloaded from php.net. 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): news,mailinfo,forums calendar,library,forums 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). Cheers! -- David Hancock | dhancock@arinc.com