Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52350 invoked from network); 17 Mar 2015 17:51:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2015 17:51:05 -0000 Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.53 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 74.125.82.53 mail-wg0-f53.google.com Received: from [74.125.82.53] ([74.125.82.53:34174] helo=mail-wg0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/41-43354-78968055 for ; Tue, 17 Mar 2015 12:51:04 -0500 Received: by wggv3 with SMTP id v3so14844487wgg.1 for ; Tue, 17 Mar 2015 10:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=OGkuFNib7DUMzc+a9OhCEKm4zrC8wPHTpfoRRDW2B30=; b=WqNxArXYnS3DITFuSC1AtE1+DO20mRsk0sH9zCplsFpjGDUfWc3TzJk/IJybnu48rn Z3w82ySZdGb+ELOufgypoftmRoqXR9vfgrRSzjnldsVpEFOmEzdVInc0/Z6SHJSumBpu lrLdT77eTts6q9wDaziXUTl7b/S+FZf6M/fcsyC94UM3UmBgoMX9KMJ5XwgeQ954w0lc Lkuz1MG4PqTDODxnACL2JC3i2/0MzxYJaqEfLAo7TJ8/BNT1HINKXWHeokP+zhof94xk 1zx6bzy+PIQq317osOgSfkXgZObiQ0BOJOMbKck4p+VOm/p9Q0kmaXqtRvlhi0jj08Z2 Rsnw== X-Received: by 10.195.11.73 with SMTP id eg9mr132065175wjd.62.1426614661007; Tue, 17 Mar 2015 10:51:01 -0700 (PDT) Received: from [192.168.2.121] (89-104-28-113.customer.bnet.at. [89.104.28.113]) by mx.google.com with ESMTPSA id md2sm3575170wic.19.2015.03.17.10.50.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 10:51:00 -0700 (PDT) Sender: Michael Wallner Message-ID: <55086983.4050803@php.net> Date: Tue, 17 Mar 2015 18:50:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Ralph Schindler , PHP Internals List References: <55084052.4040406@ralphschindler.com> In-Reply-To: <55084052.4040406@ralphschindler.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] phar_rename_archive() bug fix for PHP7 From: mike@php.net (Michael Wallner) On 17/03/15 15:55, Ralph Schindler wrote: > hi all, > > Phar::convertTo*() methods have a design flaw such that phar files can't > be successfully converted and retain the proper file suffix at the same > time when the base name contains dots. An expression of this is > attempting to convert something-v3.0.0.phar to say a tar.gz via > convertToExecutable(Phar::TAR, Phar::GZ); > > My original patch respected BC when it was destined for PHP5, but now > I've cleaned it up and removed the retention of BC behavior, and I > intend it to be merged to PHP7 only. As such, existing tests also > needed modification. > > I'd like some discussion, code review ... and if no objections, some > karma to commit this to master. The PR is here: > > https://github.com/php/php-src/pull/297 Hi Ralph! I recently stumbled over that issue, too; thanks for looking into it. Looking at the patch, it seems, that some handling for bzip2 archives is missing; I think if there are special cases for .tar, .tgz and .zip, there should also be a case for .tbz2 (.tar.bz2). -- Regards, Mike