Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72605 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39296 invoked from network); 14 Feb 2014 16:11:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Feb 2014 16:11:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 74.125.82.176 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 74.125.82.176 mail-we0-f176.google.com Received: from [74.125.82.176] ([74.125.82.176:36844] helo=mail-we0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 03/01-34645-8204EF25 for ; Fri, 14 Feb 2014 11:11:22 -0500 Received: by mail-we0-f176.google.com with SMTP id q58so8695817wes.7 for ; Fri, 14 Feb 2014 08:11:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=B0uJY2lQdyFnXueryuiOKsqu/gO/AtMqsQZ7ZExGUL8=; b=f+NT0iAsvtQX6V3WDyyTJ/5yJI3tB2A+yCijkcuc7D/IJqrH/ayfg/RObRfEKW3xTy hMCO40atykX+fI1sQ2cAktpiv3lhh3ka9JxOUxigmCOncmDDbO5XTy2fEqYiy7FTSkDd NKTqT83MkO1p2Nk06nDzFyjefIE13l5sBSPsRCE5pa/BBvJMMJ0hMJA3ObQS7wdmT8D6 XQGXeUpBzG9GKIjfp2Ni8Nqjq9C2w5issdhh6al61dyiiFTjtj64QsVt/lj3+k975dR9 p9XbxnxcKG3gkmaVxS2rf+hHNRpnTHyIM4G4oH9GRH8tILD8j44QuGAUD2tKFsZODFIC 8inw== X-Gm-Message-State: ALoCoQl8tnh/jZ7006TLGvmWHr5t1BSQcKjRGFQtz4VgR7Sv/18JD90RF3vCo5mTej5L9w/3/zHD MIME-Version: 1.0 X-Received: by 10.194.86.130 with SMTP id p2mr287219wjz.88.1392394277815; Fri, 14 Feb 2014 08:11:17 -0800 (PST) Received: by 10.216.24.195 with HTTP; Fri, 14 Feb 2014 08:11:17 -0800 (PST) X-Originating-IP: [78.147.8.68] In-Reply-To: References: Date: Fri, 14 Feb 2014 16:11:17 +0000 Message-ID: To: Yasuo Ohgaki Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] utf-8 filenames in phar files. From: danack@basereality.com (Dan Ackroyd) Hi Yasuo, That is not an issue as: i) Phar files produced on a windows machine should be identical to those produced on a Linux or OSX box. ii) There is a test in the phar code, so that if you do have filenames that are degenerate after normalising, the extraction throws an error. e.g. for the files $filename1 =3D "Am\xC3\xA9lie.txt"; $filename2 =3D "Am\x65\xCC\x81lie.txt"; If you add both to a phar archive and then attempt to extract them both you get the error: "Cannot extract "Am=E9lie.txt" to "output/Am=E9lie.txt", path already e= xists" cheers Dan