[PHP-DEV] PHP 4.0 Bug #6259: misbehaving/badly documented "fgetc($fp)" after EOF From: alex <email protected>
Date: 08/20/00

From: alex <email protected>
Operating system: linux-glibc21
PHP version: 4.0.1pl2
PHP Bug Type: Other
Bug description: misbehaving/badly documented "fgetc($fp)" after EOF

from the PHP manual: " string fgetc (int fp) - Returns a string containing a single character read from the file pointed to by fp. Returns FALSE on EOF (as does feof()).".

After an attempt to retreive char after the EOF fgetc returns 255 on my system. Either the function or the documentation should be corrected. This value 255 is what the clib returns but it does not make sense in PHP.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>