From: alex at amcms dot org Operating system: Fedora Core 3 PHP version: 5.0.3 PHP Bug Type: Zlib Related Bug description: compress.zlib://ftp:// produces warning
Description: ------------ When daisy chaining the streams compress.zlib://ftp:// php produces a warning (pasted in the actual result below) when using PHP 5.0.3 on Fedora Core 3 This does not occur when daisy chaining compress.bzip2://ftp:// which seems to send the file across fine. Note that I can use gzencode and then put the file contents and it works fine, which I can then gunzip perfectly, so it does not appear to be a problem with zlib but something between zlib and ftp daisy chaining??? Reproduce code: --------------- $buffer = "blah blah blah"; file_put_contents("compress.zlib://ftp://user:[EMAIL PROTECTED]/file.txt.gz", $buffer); // to test bzip2 which does work //file_put_contents('compress.bzip2://ftp://user:[EMAIL PROTECTED]/file.txt.gz', $buffer); Expected result: ---------------- File should write successfully. Actual result: -------------- PHP Warning: file_put_contents(compress.zlib://[EMAIL PROTECTED]/file.txt.gz) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Operation now in progress in /path/to/tmp.php on line 7 -- Edit bug report at http://bugs.php.net/?id=32848&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32848&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32848&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32848&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32848&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32848&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32848&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32848&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32848&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32848&r=support Expected behavior: http://bugs.php.net/fix.php?id=32848&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32848&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32848&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32848&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32848&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32848&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32848&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32848&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32848&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32848&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32848&r=mysqlcfg