Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64430 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57169 invoked from network); 24 Dec 2012 19:08:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Dec 2012 19:08:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wg0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:37768] helo=mail-wg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D6/82-34516-518A8D05 for ; Mon, 24 Dec 2012 14:08:06 -0500 Received: by mail-wg0-f50.google.com with SMTP id es5so3403758wgb.29 for ; Mon, 24 Dec 2012 11:08:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=phd/YSWbJhnJOOTD7ibRSCjP8b0Ph5hBe3tNhtRuRe4=; b=PmD7mOvFkr2yoeY6DfxXRIhoTL14mgrRIa+znBwfFsLFwkWKQeoHieY67QLW6nKAm9 jhEQkhC0dIR5Z7+AHDPDhiYZuTYbS69loYijrKxbBsp29GuOhTi1kVWuLcKsjTsXfRK4 g/xq/AEH8IV7pMqYexNrDWqRcCyr7sc2XTSDL2u/xshcfV5vYaptxQ+VPLAt2A1Dsbm+ Zmx5SuHY8NNklENv9BsQ3XL6go8DTGyJi0t4N1Hdb6RmB4Mn0Fs6GfLtXhyu52V+LO4d NOjN8nscctI2Ae1pZZyzT9ah60iZ1orUUEuBYIIkLvbeUdrcMsBbhh7PPt07egdZRfW4 Ergg== MIME-Version: 1.0 Received: by 10.194.9.197 with SMTP id c5mr37011247wjb.20.1356376082473; Mon, 24 Dec 2012 11:08:02 -0800 (PST) Received: by 10.227.43.19 with HTTP; Mon, 24 Dec 2012 11:08:02 -0800 (PST) In-Reply-To: References: <7EF0DC28-1C66-4767-BF78-96F94BC28620@wiedler.ch> Date: Mon, 24 Dec 2012 14:08:02 -0500 Message-ID: To: Anthony Ferrara Cc: Igor Wiedler , PHP Internals Content-Type: multipart/alternative; boundary=047d7b5d449893e43f04d19dea63 Subject: Re: [PHP-DEV] PHP-5.5 unpack change broke pecl/pear From: theanomaly.is@gmail.com (Sherif Ramadan) --047d7b5d449893e43f04d19dea63 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Dec 24, 2012 at 7:13 AM, Anthony Ferrara wrote: > Sherif, > > > You're right. It does break BC, but this was a bug fix. >> https://bugs.php.net/bug.php?id=61038 >> >> The behavior is incorrect in that regard. >> > > However in this case that *bug* does have fairly significant BC > implications. > > In fact, how I read the specification is that the original binary format > is NULL padded, not the resulting string. Therefore, you could make the > argument that the new behavior is wrong. > > In any case, I'd suggest reverting the "bug fix" for "a", and then adding > Z which keeps the raw bytes. So that way the "bug" would be fixed by the > "Z" parameter, but "a" would still behave as it always has (allowing things > like Archive_Tar to still work properly). > > Otherwise it's a BC break that has weird implications (having different > format specifications for 5.4 and 5.5, or requiring odd things like running > trim on the output... > > My $0.02... > > Anthony > Hmm, the intent behind the fix was to get the behavior more inline with Perl's pack/unpack as in PHP they weren't behaving the same way. Apparently this has had some implications in the pecl/pear installer that I was not aware of. The BC break can be reverted of course, but the idea was to only put this patch in 5.5 because of the BC concern. Now that I recall the situation I'm not sure what the best play is here, but I'll review this again and see if this is indeed inline with the spec or not. --047d7b5d449893e43f04d19dea63--