php.net |  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
Votes:2
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: salsi at icosaedro dot it
New email:
PHP Version: OS:

 

 [2016-01-01 17:01 UTC] salsi at icosaedro dot it
Description:
------------
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.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-01-02 00:57 UTC] requinix@php.net
-Package: Documentation problem +Package: Bzip2 Related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC