From: [EMAIL PROTECTED]
Operating system: Linux 2.4.18
PHP version: 4.3.0
PHP Bug Type: Zlib Related
Bug description: gzopen does not open the file
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 bug report at http://bugs.php.net/?id=21304&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21304&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21304&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21304&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21304&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21304&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21304&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21304&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21304&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21304&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21304&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21304&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21304&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21304&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21304&r=gnused