|  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
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

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');

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


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-02 10:33 UTC]
-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]

Note that PHP 5.6 is out of active support so it may not receive this fix.
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC