php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71260 bzerrno(): missing details about its meaning and returned value
Submitted: 2016-01-01 17:16 UTC Modified: 2016-01-02 00:58 UTC
From: salsi at icosaedro dot it Assigned:
Status: Open Package: Bzip2 Related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
29 + 50 = ?
Subscribe to this entry?

 
 [2016-01-01 17:16 UTC] salsi at icosaedro dot it
Description:
------------
The manual does not really explain what the bzerrno() function really does and what it returns. Here is my attempt to complete its description:

Description

Returns the last detected BZIP2 encoding or decoding error code while accessing a stream openend with bzopen(). The value returned by this function should always be checked after each succesfull invocation of the following functions: bzopen(), bzread(), bzwrite(), bzflush().


Return Values

A non zero value indicates a BZIP2 encoding or decoding error happened; the bzerrstr() function allows to retrieve its textual description.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-02 00:58 UTC] requinix@php.net
-Package: Documentation problem +Package: Bzip2 Related
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 22:01:23 2020 UTC