Skip to content

Commit 9c00765

Browse files
authored
phar: Remove obsoleted workaround code (#20136)
1 parent f97ee5c commit 9c00765

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ext/phar/zip.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -641,13 +641,6 @@ int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alia
641641

642642
zend_off_t restore_pos = php_stream_tell(fp);
643643
php_stream_seek(fp, entry.offset, SEEK_SET);
644-
/* these next lines should be for php < 5.2.6 after 5.3 filters are fixed */
645-
fp->writepos = 0;
646-
fp->readpos = 0;
647-
php_stream_seek(fp, entry.offset, SEEK_SET);
648-
fp->writepos = 0;
649-
fp->readpos = 0;
650-
/* the above lines should be for php < 5.2.6 after 5.3 filters are fixed */
651644

652645
mydata->alias_len = entry.uncompressed_filesize;
653646
if (entry.flags & PHAR_ENT_COMPRESSED_GZ) {

0 commit comments

Comments
 (0)