ID: 36387 User updated by: creg dot douglaus at gmail dot com Reported By: creg dot douglaus at gmail dot com -Status: Feedback +Status: Open Bug Type: Bzip2 Related Operating System: Windows XP, SP2 PHP Version: 5.1.2 New Comment:
<?php $filename = 'some_bz_file.tar.bz2'; $bz = bzopen($filename, "r"); bzread($bz, 10); rewind($bz); bzclose($bz); ?> Previous Comments: ------------------------------------------------------------------------ [2006-02-14 08:57:47] [EMAIL PROTECTED] 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 01:17:47] 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... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36387&edit=1