php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32848 compress.zlib://ftp:// produces warning
Submitted: 2005-04-27 09:38 UTC Modified: 2005-05-05 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: alex at amcms dot org Assigned:
Status: No Feedback Package: Zlib related
PHP Version: 5.0.3 OS: Fedora Core 3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alex at amcms dot org
New email:
PHP Version: OS:

 

 [2005-04-27 09:38 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-27 12:43 UTC] sniper@php.net
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


 [2005-05-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 06:01:30 2024 UTC