Bug #74196 [Ana->Csd]: PharData->decompress() does not correctly support dot names

From: Date: Wed, 09 Dec 2020 16:25:29 +0000
Subject: Bug #74196 [Ana->Csd]: PharData->decompress() does not correctly support dot names
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230967@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74196&edit=1 ID: 74196 Updated by: cmb@php.net Reported by: samuel dot chemla at orange dot com Summary: PharData->decompress() does not correctly support dot names -Status: Analyzed +Status: Closed Type: Bug Package: PHAR related Operating System: Windows & Linux PHP Version: 7.0.16 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: This is fixed as of PHP 7.2.0. Previous Comments: ------------------------------------------------------------------------ [2017-03-02 10:33:01] 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. ------------------------------------------------------------------------ [2017-03-02 10:26:50] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74196&edit=1

« previous php.bugs (#230967) next »