#19959 [Opn->Csd]: fgets, fgetc

From: Date: Mon, 20 Jan 2003 20:20:06 +0000
Subject: #19959 [Opn->Csd]: fgets, fgetc
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969351125@lists.php.net to get a copy of this message
ID: 19959 Updated by: pollita@php.net Reported By: holliwell@gmx.net -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. The meat of /php4/ext/standard/file.c::fgetc() hasn't changed since rev 1.1 It's just too simple not to be binary safe. Previous Comments: ------------------------------------------------------------------------ [2002-11-10 18:43:15] philip@php.net The first post suggests fgetc() is binary safe, anyone know since when? Marking this as open until it's documented. ------------------------------------------------------------------------ [2002-10-19 17:57:51] philip@php.net Is fgetc() binary safe now too? Only fgets() has been documented as such thus far. fgetc() lacks documention on the matter altogether. ------------------------------------------------------------------------ [2002-10-19 10:56:45] iliaa@php.net 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. ------------------------------------------------------------------------ [2002-10-18 12:22:24] holliwell@gmx.net yes ------------------------------------------------------------------------ [2002-10-17 12:35:24] sniper@php.net I assume you have used 'rb' for mode in fopen..? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19959 -- Edit this bug report at http://bugs.php.net/?id=19959&edit=1

« previous php.doc (#969351125) next »