ID: 10492 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Documentation problem PHP Version: 4.0.4pl1 Assigned To: Comments: You need to use === FALSE in this case, to check for the type too. If this is what you are doing, please reopen this bug report and include a short reproducing script. Previous Comments: --------------------------------------------------------------------------- [2001-04-25 11:09:27] [EMAIL PROTECTED] According to the manula fgetc returns value FALSE if the eof is reached. This is true but the problem is that it also returns FALSE if a '0' is read from the file. The return value FALSE of fgetc() should not be used to test the EOF condition. It is better to drop that line from the documentation and add a reference for using feof() to test for the EOF condition. Bye, Erik. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10492&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]