ID:               32848
 Updated by:       [EMAIL PROTECTED]
 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:[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 this bug report at http://bugs.php.net/?id=32848&edit=1

Reply via email to