Req #78915 [NoF->Wfx]: Make zip streams seekable

From: Date: Sun, 29 Mar 2020 05:13:37 +0000
Subject: Req #78915 [NoF->Wfx]: Make zip streams seekable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226317@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=78915&edit=1 ID: 78915 Updated by: requinix@php.net Reported by: arava dot box at gmail dot com Summary: Make zip streams seekable -Status: No Feedback +Status: Wont fix Type: Feature/Change Request Package: Zip Related Operating System: ubuntu 18.04 PHP Version: 7.3.12 Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2020-03-29 04:22:09] php-bugs at lists dot php dot 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 "Re-Opened". Thank you. ------------------------------------------------------------------------ [2020-03-18 13:37:16] remi@php.net From libzip documentation: zip_fseek only works on uncompressed (stored) data. When called on compressed data it will return an error. So doesn't seems to be doable. I propose to close as wont fix ------------------------------------------------------------------------ [2019-12-05 16:25:13] cmb@php.net Thanks for the explanation! I assume that zip streams are not seekable, because fseek()[1] has only introduced recently (and maybe zip streams are already seekable if ext/zip has been built against libzip >= 1.2.0?). Anyhow, that wouldn't be a bug, but rather a feature request. And yes, the current behavior should be documented anyway. I'll see to it, unless somebody else beats me to it. [1] <https://libzip.org/documentation/zip_fseek.html> ------------------------------------------------------------------------ [2019-12-05 15:55:05] arava dot box at gmail dot com Hello. Well, actually both of them. zip:// is not seekable, and if that's wrong then why it's not documented. Anyway, I am wondering to know why compress://zlib is seekable. Thx ------------------------------------------------------------------------ [2019-12-05 14:36:03] cmb@php.net What's the bug you are reporting? Is it that zip:// streams are not seekable? Or is it that this is not documented? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=78915 -- Edit this bug report at https://bugs.php.net/bug.php?id=78915&edit=1

« previous php.bugs (#226317) next »