|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-12 17:05 UTC] jani@php.net
[2008-08-12 17:07 UTC] jani@php.net
[2008-11-10 11:22 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 03:00:01 2025 UTC |
Description: ------------ gzgets returns false at the end of file when reading an uncompressed file. It does not return false when reading compressed files. Installed: zlib 1.2.3-r1 (gentoo) If this is intended behavior, then the documentation should probably have it in there.. unless I missed it. :) Reproduce code: --------------- $f = gzopen('somefile','r'); while(!gzeof($f)) if (($line = gzgets($f,65535)) === false) echo "It returned false.\n"; else echo "It did not return false!\n"; Expected result: ---------------- It did not return false! ... It did not return false! Actual result: -------------- It did not return false! ... It did not return false! It returned false.