Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85125 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36813 invoked from network); 17 Mar 2015 14:55:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2015 14:55:20 -0000 Authentication-Results: pb1.pair.com header.from=ralph@ralphschindler.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ralph@ralphschindler.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain ralphschindler.com from 209.85.214.175 cause and error) X-PHP-List-Original-Sender: ralph@ralphschindler.com X-Host-Fingerprint: 209.85.214.175 mail-ob0-f175.google.com Received: from [209.85.214.175] ([209.85.214.175:36455] helo=mail-ob0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 88/B1-26056-75048055 for ; Tue, 17 Mar 2015 09:55:20 -0500 Received: by obdfc2 with SMTP id fc2so9035113obd.3 for ; Tue, 17 Mar 2015 07:55:15 -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:content-type:content-transfer-encoding; bh=1IDenBsd5n1NoQo59lJacQpMarB8TmBWF9oOIOCYLIs=; b=V0djj3djZ9CpZnJQcFLpI7z73Wx4NUBTPKIxtaiTlgxeHt7Yf70GSetsUf8+TeqJt/ LZet0oC9LvxfKDrClwAVQxV+0QaHUMZrG/C8pznPmleCtxEB9EOjn26gTF1APj/x2YuJ VaP+PdCuYORiDh3z3ET+uTjp4vP2G5cXOVo770chU34yqIWxvTDf93p1WoAMVzHCjr4R IrKMohy4vGg818NsVwXw+gMwN4sxZgEMWm1hvJ372MbVspn3TVgae8wdapNlV9Imk4fS sgMm8PF2phAsjPPWSVVTkXiBBktUXOHgRcuyjingFYJOkNOydUL21EcxIk42AyE8pmRe O2Kg== X-Gm-Message-State: ALoCoQnhtjLpCg4me3tzo6wYXQQ/35TRh1Ow7fYKBEvts1Zrleix06TydnRsApMdK6QP03mUGZNg X-Received: by 10.202.74.147 with SMTP id x141mr16448520oia.118.1426604115227; Tue, 17 Mar 2015 07:55:15 -0700 (PDT) Received: from [172.16.1.4] (ip72-211-83-231.no.no.cox.net. [72.211.83.231]) by mx.google.com with ESMTPSA id rt10sm9221877obb.7.2015.03.17.07.55.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Mar 2015 07:55:14 -0700 (PDT) Message-ID: <55084052.4040406@ralphschindler.com> Date: Tue, 17 Mar 2015 09:55:14 -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: PHP Internals List Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: phar_rename_archive() bug fix for PHP7 From: ralph@ralphschindler.com (Ralph Schindler) 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 Thanks, Ralph