Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85145 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91569 invoked from network); 17 Mar 2015 21:42:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2015 21:42:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=ralph@ralphschindler.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ralph@ralphschindler.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ralphschindler.com from 209.85.214.182 cause and error) X-PHP-List-Original-Sender: ralph@ralphschindler.com X-Host-Fingerprint: 209.85.214.182 mail-ob0-f182.google.com Received: from [209.85.214.182] ([209.85.214.182:35921] helo=mail-ob0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/B4-56166-7A998055 for ; Tue, 17 Mar 2015 16:16:24 -0500 Received: by obdfc2 with SMTP id fc2so17794636obd.3 for ; Tue, 17 Mar 2015 14:16:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=5LTdqXOqEEOwSAPpoMcVEkk2HQ27BhcPVLVKD40Aai8=; b=IEZbQ+AMcQwjcK+yH6MhcxiEB8qbx1avBHlkCUT8ZpighvLmqwV89tbW48VkXCcYT7 6zsjy7TNlaeZyy4BDTixPWFeBjfM/fvNPC8o4aNAjTnQ1qaX05cUSmAOpaqoFWavfOd4 /pHVd3D6OktcoaCyPR431PsewZ8Txm5LNhTJUvfvXKAE0GkDJSJkVOPkmoNbaSlLCxJ0 kTO+xGoIAk0MKkR7r0obbwuzBzqJ/DZGpNxuD4HWeDz8SjPiVCWbtU+4Pdy1GG2JNhCt SprI4dLVhSJBwqJLXZmORJHKXMs6XVHfgIYJJPeZh5jUz62YqxBg8KEgML3YM1b1mIli ga/w== X-Gm-Message-State: ALoCoQlGoaH7Va2qGVM6jG++K++JHaxiJM9Jbb2UKQ1cbeT2CkNdHUjWAg7Ys7asyIUqn8yVytSA X-Received: by 10.182.40.135 with SMTP id x7mr54245395obk.45.1426626980870; Tue, 17 Mar 2015 14:16:20 -0700 (PDT) Received: from [172.31.98.51] (wsip-184-188-96-209.no.no.cox.net. [184.188.96.209]) by mx.google.com with ESMTPSA id z8sm9850286obw.23.2015.03.17.14.16.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 14:16:20 -0700 (PDT) Message-ID: <550899A3.7050705@ralphschindler.com> Date: Tue, 17 Mar 2015 16:16:19 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Michael Wallner , PHP Internals List References: <55084052.4040406@ralphschindler.com> <55086983.4050803@php.net> In-Reply-To: <55086983.4050803@php.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] phar_rename_archive() bug fix for PHP7 From: ralph@ralphschindler.com (Ralph Schindler) > 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). Yep, I discussed this with a friend and did a quick search this morning. It is missing, mostly because I didn't know how popular .tbz2 was as a file extension - it is very rare. In most cases I see .tar.bz2 (a case already handled by .tar). I can add .tbz2 as a handled file extension, and restructure the code accordingly. Additionally, I've found that phar_detect_phar_fname_ext() also needs some suffix validation, which I will also add. I will have a new commit for this in place tonight. (Which will also trigger Travis to run again, I think it failed b/c I force pushed my last commit). Thanks for taking the time, I'll let you know when there are more commits to review. -ralph