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: 2017-03-02 10:33 UTC
Votes:3
Avg. Score:3.3 ± 1.2
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:
Status: Analyzed Package: PHAR related
PHP Version: 7.0.16 OS: Windows & Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC