#32848 [Opn->Fbk]: compress.zlib://ftp:// produces warning

From: Date: Wed, 27 Apr 2005 10:43:52 +0000
Subject: #32848 [Opn->Fbk]: compress.zlib://ftp:// produces warning
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-78270@lists.php.net to get a copy of this message
ID: 32848 Updated by: sniper@php.net Reported By: alex at amcms dot org -Status: Open +Status: Feedback Bug Type: Zlib Related Operating System: Fedora Core 3 PHP Version: 5.0.3 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2005-04-27 09:38:37] alex at amcms dot org 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:password@domain.com/file.txt.gz", $buffer); // to test bzip2 which does work //file_put_contents('compress.bzip2://ftp://user:password@domain.com/file.txt.gz', $buffer); Expected result: ---------------- File should write successfully. Actual result: -------------- PHP Warning: file_put_contents(compress.zlib://...@domain.com/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 this bug report at http://bugs.php.net/?id=32848&edit=1

« previous php.bugs (#78270) next »