ID:               19959
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: win32/linux
 PHP Version:      4.2.3
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

fgets() is now binary safe in latest CVS.


Previous Comments:
------------------------------------------------------------------------

[2002-10-18 12:22:24] [EMAIL PROTECTED]

yes

------------------------------------------------------------------------

[2002-10-17 12:35:24] [EMAIL PROTECTED]

I assume you have used 'rb' for mode in fopen..?


------------------------------------------------------------------------

[2002-10-17 12:07:02] [EMAIL PROTECTED]

Hi,

maybe only a doc problem.
fgetc seems to be binary safe, while fgets not.

assume:
fopen a lokal file,
read it with fgetc or fgets,

you'll get bogus results with fgets if the opened file contains \0

Friedhelm Betz

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19959&edit=1


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to