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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

Add a Patch

Pull Requests

Add a Pull Request

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: Sat Apr 20 13:01:29 2024 UTC