php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36327 Long Integer
Submitted: 2006-02-08 01:02 UTC Modified: 2006-02-16 01:00 UTC
From: kontakt at zuckerimnetz dot de Assigned:
Status: No Feedback Package: Filesystem function related
PHP Version: 5.1.2 OS: Windows XP Home 32 bit
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kontakt at zuckerimnetz dot de
New email:
PHP Version: OS:

 

 [2006-02-08 01:02 UTC] kontakt at zuckerimnetz dot de
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-08 09:07 UTC] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.



 [2006-02-16 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC