Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96745 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85350 invoked from network); 6 Nov 2016 19:56:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2016 19:56:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.2 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.2 smtp2-g21.free.fr Received: from [212.27.42.2] ([212.27.42.2:12792] helo=smtp2-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/06-33116-9FA8F185 for ; Sun, 06 Nov 2016 14:56:42 -0500 Received: from [127.0.0.1] (unknown [82.240.16.115]) (Authenticated sender: flaupretre@free.fr) by smtp2-g21.free.fr (Postfix) with ESMTPSA id ADCD9200371; Sun, 6 Nov 2016 20:56:35 +0100 (CET) To: =?UTF-8?Q?Pedro_Magalh=c3=a3es?= , PHP Internals List References: Message-ID: <52157a07-edf4-5c43-4abc-4cf2f3d869ee@php.net> Date: Sun, 6 Nov 2016 20:56:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 161106-0, 06/11/2016), Outbound message X-Antivirus-Status: Clean Subject: Re: [PHP-DEV] Binary string forward compatibility removal From: francois@php.net (=?UTF-8?Q?Fran=c3=a7ois_Laupretre?=) Hi, it was stated during the pre-7 discussions, that this flag would be kept for possible future unicode-compliant developments. So, people needing binary strings are still encouraged to use the flag, even if it is not used in the current versions. Regards François Le 06/11/2016 à 20:22, Pedro Magalhães a écrit : > Hi internals, > > I've created a PR (https://github.com/php/php-src/pull/2187) aiming at > the removal of the binary string forward compatibility. > > Reproducing the description of the PR: > ---- > In version 5.2.1, the b prefix and the (binary) cast were introduced for > forward compatibility with the PHP6 project. As it is known, that > project never came to be. However, these are still accepted by the > language scanner although ignored from then on. > > This PR aims at removing those as they are naturally confusing given > that they are simply ignored or, in the case of the cast, the same as > casting to string. > > However, I've separated this PR in 2 commits because the removal of the > (binary) cast will bring a more serious BC break issue: On the PHAR > extension, the current default stub for PHAR's makes use of the binary > cast. I've removed it from the default stub and fixed the tests that > made use of it but this means that the old PHARs that make use of this > default stub will be broken. > > What seemed to be a simple task actually turned out to be far more > complex given the number of tests that were written with this forward > compatibility in mind. > > I would be happy to transform this into an RFC if you think it would be > appropriate. > ---- > > Any feedback would be greatly appreciated. > > Best regards, > Pedro Magalhães > > > >