Bug #71258 [NEW]: bzread(): detailed description of the returned values and errors

From: Date: Fri, 01 Jan 2016 16:38:53 +0000
Subject: Bug #71258 [NEW]: bzread(): detailed description of the returned values and errors
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-13054@lists.php.net to get a copy of this message
From: salsi at icosaedro dot it Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Bug Bug description:bzread(): detailed description of the returned values and errors Description: ------------ The "return value" section of the page describing bzread() shoutd explain more in detail what really this function may return: - FALSE: error reading from the stream. An error of level E_WARNING is also raised in this case; you may retrieve the text of the error message from the $php_errormsg magic variable, if enabled. - Empty string: end of the file or BZIP2 deconding error. Use feof($bz) to detect the first case, and use bzerrno($bz) != 0 to detect the latter. - Non empty string: decoded data. Check bzerror($bz) != 0 for possible BZIP2 decoding errors. Data may still be garbage because the BZIP2 checksum is checked only after a whole block of BZIP2 data has been read or at the end of the stream, so in general data read cannot be trusted until the whole content of the file has been read. -- Edit bug report at https://bugs.php.net/bug.php?id=71258&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71258&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71258&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71258&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71258&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71258&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71258&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71258&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71258&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71258&r=support Expected behavior: https://bugs.php.net/fix.php?id=71258&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71258&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71258&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71258&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71258&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71258&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71258&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71258&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71258&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71258&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71258&r=mysqlcfg

« previous php.doc.bugs (#13054) next »