php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67417 ::compress modifies archive basename.
Submitted: 2014-06-10 15:52 UTC Modified: 2015-03-30 18:49 UTC
From: pajoye@php.net Assigned:
Status: Duplicate Package: PHAR related
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: pajoye@php.net
New email:
PHP Version: OS:

 

 [2014-06-10 15:52 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-30 18:49 UTC] mike@php.net
-Status: Open +Status: Duplicate
 [2015-03-30 18:49 UTC] mike@php.net
Duplicate of Bug #60953 -- silly usage of strtok
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 11 16:01:26 2024 UTC