php.net |  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
Votes:2
Avg. Score:2.5 ± 1.5
Reproduced:0 of 0 (0.0%)
From: nlopess@php.net 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] nlopess@php.net
Description:
------------
I can't use the compress.bzip2 wrapper. Can you please check my code above?

Reproduce code:
---------------
<?

$fp=fopen('compress.bzip2://http://php.net/backend/notes/all.bz2', 'r');

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

fclose($fp);
?>

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-01 17:21 UTC] nlopess@php.net
works on linux but not on windows..
 [2005-07-01 09:41 UTC] sniper@php.net
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] nlopess@php.net
Yes, I'm using the binaries from snaps.php.net
BTW, my builds work :) (on cygwin, as I don't have the MSVC)
 [2005-11-17 19:18 UTC] nlopess@php.net
Warning: fopen(compress.bzip2://http://pt.php.net/backend/notes/all.bz2): failed to open stream: Invalid argument in C:\Documents and Settings\Nuno\- on line 3
 [2007-01-12 16:45 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip


 [2007-01-12 22:10 UTC] nlopess@php.net
yep, it still issue the same warning.
 [2007-08-04 21:03 UTC] jani@php.net
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
Hi,

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 :-)

Philip
 [2007-08-10 11:41 UTC] nlopess@php.net
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] pajoye@php.net
Assign to the reporter, he has a cvs account too now >)
 [2010-06-13 14:58 UTC] felipe@php.net
-Assigned To: nlopess +Assigned To: iliaa
 [2010-06-13 14:58 UTC] felipe@php.net
Ilia, was this bug fixed with the fix for bug #42117?
 [2010-06-30 13:22 UTC] iliaa@php.net
-Status: Assigned +Status: Feedback
 [2010-06-30 13:22 UTC] iliaa@php.net
Please try using this CVS snapshot.
 [2011-06-01 12:02 UTC] iliaa@php.net
-Status: Feedback +Status: No Feedback
 [2011-06-01 12:02 UTC] iliaa@php.net
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-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 15:02:26 2014 UTC