php.net |  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
Votes:1
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
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: creg dot douglaus at gmail dot com
New email:
PHP Version: OS:

 

 [2006-02-14 01:17 UTC] creg dot douglaus at gmail dot com
Description:
------------
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...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-14 08:57 UTC] tony2001@php.net
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
<?php
$filename = 'some_bz_file.tar.bz2';
$bz = bzopen($filename, "r");
bzread($bz, 10);
rewind($bz);
bzclose($bz);
?>
 [2006-02-15 08:37 UTC] tony2001@php.net
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] tony2001@php.net
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: Fri Apr 19 01:01:28 2024 UTC