|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71259 bzopen(): more detailed description of the returned value and errors
Submitted: 2016-01-01 17:01 UTC Modified: 2016-01-02 00:57 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: salsi at icosaedro dot it Assigned:
Status: Open Package: Bzip2 Related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2016-01-01 17:01 UTC] salsi at icosaedro dot it
The "Return Values" section about the bzopen() should explain in more details the possible returned values and errors:

- FALSE: failed to open or to create the file, or invalid mode specified. In this case an error of level E_WARNING is also triggered and the magic variable $php_errormsg is set (if enabled).

- resource: file succesfully opened or created. On reading, check if bzerrno($bz) != 0 for possible BZIP2 encoding errors that may happen if the read file is corrupted or is not a BZIP2 encoded file at all.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-02 00:57 UTC]
-Package: Documentation problem +Package: Bzip2 Related
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Dec 07 11:01:27 2023 UTC