PHP 4.0 Bug #7432: fgetc() is not bin-safe on Windows
| From: | i088 at informatik dot fh-wuerzburg dot de | Date: | Tue, 24 Oct 2000 13:50:18 +0000 |
| Subject: | PHP 4.0 Bug #7432: fgetc() is not bin-safe on Windows | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35889@lists.php.net to get a copy of this message | ||
From: i088@informatik.fh-wuerzburg.de
Operating system: Win9x/Linux
PHP version: 4.0.3pl1
PHP Bug Type: Filesystem function related
Bug description: fgetc() is not bin-safe on Windows
If you read a (binary) file character by character with fgetc() you can't read the whole file
because you get the EOF before the end of the file. If you try to read the file further with fgetc()
you always get the EOF and the variable you read the character into is not set or empty (I
don't know which of these, but I think is empty).
This appears in the Windows-version (PWS/isapi-PHP and also
Apache/apache-PHP-module) but not in the Linux-version (Apache/apache-PHP-module DSO).
--
Edit Bug report at: http://bugs.php.net/?id=7432&edit=1