#37207 [Opn->Csd]: fgets example

From: Date: Wed, 26 Apr 2006 10:21:42 +0000
Subject: #37207 [Opn->Csd]: fgets example
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969372770@lists.php.net to get a copy of this message
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

« previous php.doc (#969372770) next »