Bug #67417 [Opn->Dup]: ::compress modifies archive basename.

From: Date: Mon, 30 Mar 2015 18:49:12 +0000
Subject: Bug #67417 [Opn->Dup]: ::compress modifies archive basename.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191732@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67417&edit=1 ID: 67417 Updated by: mike@php.net Reported by: pajoye@php.net Summary: ::compress modifies archive basename. -Status: Open +Status: Duplicate Type: Bug Package: PHAR related Operating System: * PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Duplicate of Bug #60953 -- silly usage of strtok Previous Comments: ------------------------------------------------------------------------ [2014-06-10 15:52:31] pajoye@php.net Description: ------------ ::compress modifies archive basename. Test script: --------------- <?php $files = ['a.txt']; $arch = new \PharData('foo-1.2.3.tar'); foreach ($files as $file) { $arch->addFile($file); } $arch->compress(\Phar::GZ); Expected result: ---------------- foo-1.2.3.tar.gz Actual result: -------------- foo-1.tar.gz ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67417&edit=1

« previous php.bugs (#191732) next »