Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96743 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80968 invoked from network); 6 Nov 2016 19:22:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Nov 2016 19:22:59 -0000 Authentication-Results: pb1.pair.com header.from=mail@pmmaga.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=mail@pmmaga.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain pmmaga.net designates 149.210.149.72 as permitted sender) X-PHP-List-Original-Sender: mail@pmmaga.net X-Host-Fingerprint: 149.210.149.72 outbound1.mail.transip.nl Received: from [149.210.149.72] ([149.210.149.72:51088] helo=outbound1.mail.transip.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 86/25-33116-1138F185 for ; Sun, 06 Nov 2016 14:22:58 -0500 Received: from submission6.mail.transip.nl (submission6.mail.transip.nl [149.210.149.10]) by outbound1.mail.transip.nl (Postfix) with ESMTP id 3tBlpP61MJzSPZ5 for ; Sun, 6 Nov 2016 20:22:53 +0100 (CET) Received: from webmail.frontend (web1.mail.transip.nl [149.210.149.96]) by submission6.mail.transip.nl (Postfix) with ESMTPA id 3tBlpP104Wz12Myf for ; Sun, 6 Nov 2016 20:22:49 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Sun, 06 Nov 2016 20:22:49 +0100 To: PHP Internals List Message-ID: X-Sender: mail@pmmaga.net User-Agent: Webmail X-Scanned-By: ClueGetter at submission6.mail.transip.nl X-Report-Abuse-To: abuse@transip.nl Subject: Binary string forward compatibility removal From: mail@pmmaga.net (=?UTF-8?Q?Pedro_Magalh=C3=A3es?=) 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