|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36387 rewind() does not work on Bzip2 handles
Submitted: 2006-02-14 01:17 UTC Modified: 2006-02-15 21:46 UTC
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: creg dot douglaus at gmail dot com Assigned:
Status: Not a bug Package: Bzip2 Related
PHP Version: 5.1.2 OS: Windows XP, SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
46 - 4 = ?
Subscribe to this entry?

 [2006-02-14 01:17 UTC] creg dot douglaus at gmail dot com
rewind() and fseeking to position zero do not work on Bzip2 file handles. As it works with gz-file pointers, it should work with Bzip2 file pointers as well... This is an issue across all versions of PHP...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-14 08:57 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

 [2006-02-14 22:13 UTC] creg dot douglaus at gmail dot com
$filename = 'some_bz_file.tar.bz2';
$bz = bzopen($filename, "r");
bzread($bz, 10);
 [2006-02-15 08:37 UTC]
Warning: rewind(): stream does not support seeking
The error message is quite descriptive.
 [2006-02-15 21:02 UTC] creg dot douglaus at gmail dot com
Perhaps it should support seeking to make it parallel with the other functions?
 [2006-02-15 21:46 UTC]
I'm afraid there is no such possibility at all or do you have a patch?
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Feb 28 14:01:28 2024 UTC