| vrana@php.net 2006-04-26, 7:58 am |
| ID: 37207
Updated by: vrana@php.net
Reported By: hanwoody at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2006-04-26 10:15:19] hanwoody at gmail dot com
Description:
------------
http://cn.php.net/manual/zh/function.fgets.php
<?php
$handle = fopen("/tmp/inputfile.txt", "r");
while (!feof($handle)) {
$buffer = fgets($fd, 4096);
echo $buffer;
}
fclose($handle);
?>
Reproduce code:
---------------
<?php
$handle = fopen("/tmp/inputfile.txt", "r");
while (!feof($handle)) {
$buffer = fgets($fd, 4096);
echo $buffer;
}
fclose($handle);
?>
Expected result:
----------------
<?php
$handle = fopen("/tmp/inputfile.txt", "r");
while (!feof($handle)) {
$buffer = fgets($handle, 4096);
echo $buffer;
}
fclose($handle);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37207&edit=1
|