|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29521 compress.bzip2 wrapper
Submitted: 2004-08-04 13:17 UTC Modified: 2011-06-01 12:02 UTC
Avg. Score:2.5 ± 1.5
Reproduced:0 of 0 (0.0%)
From: Assigned: iliaa
Status: No Feedback Package: Bzip2 Related
PHP Version: 5.2CVS-2007-01-10 OS: win32 only
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-08-04 13:17 UTC]
I can't use the compress.bzip2 wrapper. Can you please check my code above?

Reproduce code:

$fp=fopen('compress.bzip2://', 'r');

while (!feof($fp)) {
   echo fgets($fp, 4096);


Actual result:
Warning: fopen() 1137 bytes of buffered data lost during stream conversion!
in /cvs/livedocs/test_bz.php on line 3


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-01 17:21 UTC]
works on linux but not on windows..
 [2005-07-01 09:41 UTC]
Ilia, it doesn't work! help! :)

Nuno: You ARE using the binary snapshot, right? And not trying to build it yourself from sources..?
 [2005-07-01 16:08 UTC]
Yes, I'm using the binaries from
BTW, my builds work :) (on cygwin, as I don't have the MSVC)
 [2005-11-17 19:18 UTC]
Warning: fopen(compress.bzip2:// failed to open stream: Invalid argument in C:\Documents and Settings\Nuno\- on line 3
 [2007-01-12 16:45 UTC]
Please try using this CVS snapshot:
For Windows:

 [2007-01-12 22:10 UTC]
yep, it still issue the same warning.
 [2007-08-04 21:03 UTC]
See bug #42117 which might be the same issue. Nuno, can you try the patch?

 [2007-08-05 18:17 UTC] phofstetter at sensational dot ch

being the reporter of bug #42117, I think this really is the same thing and I actually reported a duplicate (terribly sorry for this), though "my" bug is about the bzip2.compress *filter* where this is about the stream *wrapper*, but the bug really feels like being the same problem.

Also, the warning is consistent to what I have seen in my case and to what the incorrect checking of that error code (see #42117) would cause.

I'm really having my hopes up that this is going to be fixed now :-)

 [2007-08-10 11:41 UTC]
I don't think this has anything to do with that bug. I checked both filter and wrapper sources and they are too different.
 [2008-11-30 22:46 UTC]
Assign to the reporter, he has a cvs account too now >)
 [2010-06-13 14:58 UTC]
-Assigned To: nlopess +Assigned To: iliaa
 [2010-06-13 14:58 UTC]
Ilia, was this bug fixed with the fix for bug #42117?
 [2010-06-30 13:22 UTC]
-Status: Assigned +Status: Feedback
 [2010-06-30 13:22 UTC]
Please try using this CVS snapshot.
 [2011-06-01 12:02 UTC]
-Status: Feedback +Status: No Feedback
 [2011-06-01 12:02 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2015 The PHP Group
All rights reserved.
Last updated: Tue Oct 13 12:01:31 2015 UTC