#21304 [Opn->Ver]: gzopen does not open the file
| From: | wez@php.net | Date: | Tue, 31 Dec 2002 11:31:22 +0000 |
| Subject: | #21304 [Opn->Ver]: gzopen does not open the file | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28842@lists.php.net to get a copy of this message | ||
ID: 21304
Updated by: wez@php.net
Reported By: brianlmoon@php.net
-Status: Open
+Status: Verified
Bug Type: Zlib Related
Operating System: Linux 2.4.18
PHP Version: 4.3.0
-Assigned To:
+Assigned To: wez
New Comment:
I can see 2 problems with the code; fixes going in shortly.
Previous Comments:
------------------------------------------------------------------------
[2002-12-31 01:43:42] brianlmoon@php.net
FWIW, I just checked and only append is affected. If I open the file
with "w", it works fine. Obviously, I need "a", but that should help.
------------------------------------------------------------------------
[2002-12-31 01:40:02] brianlmoon@php.net
This was working fine with 4.2.3. Simple script, yes I should if $fp,
but it is a test script.
<?php
$fp=gzopen("/tmp/test.txt.gz", "a");
gzwrite($fp, "this is a line\n");
gzclose($fp);
?>
example: http://dev.phorum.org/gztest.php
$fp is empty but there is no error from gzopen at all. I have all
errors on. In fact, you do get a warning from gzwrite and gzclose that
$fp is not valid stream.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21304&edit=1