|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-02-08 09:07 UTC] tony2001@php.net
[2006-02-16 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 20:00:01 2025 UTC |
Description: ------------ here my Code: <? $file = "all.txt"; $fp = fopen($file, "r"); while(!feof($fp)) { $buffer = fgets($fp, 999999999); echo strlen($buffer); break; } fclose($fp); ?> The Line $buffer = fgets($fp, 999999999); is dirty or an PHP Bug If i delete one Number: $buffer = fgets($fp, 99999999); then Its all OK! Sorry, I'am come from Germany But my english was never good ;) Reproduce code: --------------- <? $file = "all.txt"; $fp = fopen($file, "r"); while(!feof($fp)) { $buffer = fgets($fp, 999999999); echo strlen($buffer); break; } fclose($fp); ?> Expected result: ---------------- My Page cant load. I see the default networkerror page