ID:               36387
 User updated by:  creg dot douglaus at gmail dot com
 Reported By:      creg dot douglaus at gmail dot com
 Status:           Bogus
 Bug Type:         Bzip2 Related
 Operating System: Windows XP, SP2
 PHP Version:      5.1.2
 New Comment:

Perhaps it should support seeking to make it parallel with the other
functions?


Previous Comments:
------------------------------------------------------------------------

[2006-02-15 08:37:32] [EMAIL PROTECTED]

Warning: rewind(): stream does not support seeking
The error message is quite descriptive.

------------------------------------------------------------------------

[2006-02-14 22:13:27] 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-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

Reply via email to