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

From: Date: Thu, 02 Mar 2017 10:33:03 +0000
Subject: Bug #74196 [Opn->Ana]: PharData->decompress() does not correctly support dot names
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207656@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: requinix@php.net Reported by: samuel dot chemla at orange dot com Summary: PharData->decompress() does not correctly support dot names -Status: Open +Status: Analyzed Type: Bug -Package: *Compression related +Package: PHAR related Operating System: Windows & Linux -PHP Version: 5.6.30 +PHP Version: 7.0.16 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 (#207656) next »