php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #26390 buggy example
Submitted: 2003-11-24 16:47 UTC Modified: 2003-11-25 14:13 UTC
From: corinl at gmx dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.0 OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: corinl at gmx dot de
New email:
PHP Version: OS:

 

 [2003-11-24 16:47 UTC] corinl at gmx dot de
Description:
------------
http://www.php.net/manual/en/ref.zlib.php

In Example 1, there is a missing "gzclose($zp);" before the unlink. When the example is run "as is" it cannot unlink the tmp file because it is still open.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-24 18:36 UTC] pollita@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Thanks... gzpassthru()'s behavior changed slightly with the introduction of streams.  The next build of the manual will have it showing an explicit gzclose();
 [2003-11-25 10:11 UTC] betz@php.net
As the behavior of gzpassthru changed, the docs for this func should be updated.
 [2003-11-25 14:12 UTC] pollita@php.net
It always has been changed.  See CVS.
 [2003-11-25 14:13 UTC] pollita@php.net
s/always/already/
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Oct 04 21:00:03 2025 UTC