php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74196 PharData->decompress() does not correctly support dot names
Submitted: 2017-03-02 10:26 UTC Modified: 2020-12-09 16:25 UTC
Votes:5
Avg. Score:3.2 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: samuel dot chemla at orange dot com Assigned: cmb (profile)
Status: Closed Package: PHAR related
PHP Version: 7.0.16 OS: Windows & Linux
Private report: No CVE-ID: None
 [2017-03-02 10:26 UTC] samuel dot chemla at orange dot com
Description:
------------
Hi,

the following test script was tested with same results on PHP 5.6.30 and on PHP7.0.14

Test script:
---------------
$p = new \PharData('1.0.0.tar.bz2');
$p->decompress();

Expected result:
----------------
The uncompressed file name should be 1.0.0.tar

Actual result:
--------------
It will produce an uncompressed tar file with name 1.tar

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-02 10:33 UTC] requinix@php.net
-Status: Open +Status: Analyzed -Package: *Compression related +Package: PHAR related -PHP Version: 5.6.30 +PHP Version: 7.0.16
 [2017-03-02 10:33 UTC] requinix@php.net
https://github.com/php/php-src/blob/master/ext/phar/phar_object.c#L2107

Note that PHP 5.6 is out of active support so it may not receive this fix.
 [2020-12-09 16:25 UTC] cmb@php.net
-Status: Analyzed +Status: Closed -Assigned To: +Assigned To: cmb
 [2020-12-09 16:25 UTC] cmb@php.net
This is fixed as of PHP 7.2.0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 03:01:29 2024 UTC