#36327 [Opn->Fbk]: Long Integer
| From: | tony2001@php.net | Date: | Wed, 08 Feb 2006 08:07:52 +0000 |
| Subject: | #36327 [Opn->Fbk]: Long Integer | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-93041@lists.php.net to get a copy of this message | ||
ID: 36327
Updated by: tony2001@php.net
Reported By: kontakt at zuckerimnetz dot de
-Status: Open
+Status: Feedback
-Bug Type: *General Issues
+Bug Type: Filesystem function related
Operating System: Windows XP Home 32 bit
PHP Version: 5.1.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2006-02-08 01:02:50] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36327&edit=1