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

From: Date: Thu, 02 Mar 2017 10:26:51 +0000
Subject: Bug #74196 [NEW]: PharData->decompress() does not correctly support dot names
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207655@lists.php.net to get a copy of this message
From: samuel dot chemla at orange dot com Operating system: Windows & Linux PHP version: 5.6.30 Package: *Compression related Bug Type: Bug Bug description:PharData->decompress() does not correctly support dot names 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 bug report at https://bugs.php.net/bug.php?id=74196&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74196&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74196&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74196&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74196&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74196&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74196&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74196&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74196&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74196&r=support Expected behavior: https://bugs.php.net/fix.php?id=74196&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74196&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74196&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74196&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74196&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74196&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74196&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74196&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74196&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74196&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74196&r=mysqlcfg

« previous php.bugs (#207655) next »