Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96761 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65340 invoked from network); 7 Nov 2016 17:00:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2016 17:00:33 -0000 Authentication-Results: pb1.pair.com header.from=me@kelunik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@kelunik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain kelunik.com from 81.169.146.216 cause and error) X-PHP-List-Original-Sender: me@kelunik.com X-Host-Fingerprint: 81.169.146.216 mo4-p00-ob.smtp.rzone.de Received: from [81.169.146.216] ([81.169.146.216:15962] helo=mo4-p00-ob.smtp.rzone.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8F/00-33116-033B0285 for ; Mon, 07 Nov 2016 12:00:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1478538029; l=5269; s=domk; d=kelunik.com; h=Content-Type:Cc:To:Subject:Date:From:References:In-Reply-To: MIME-Version; bh=TflAde/xXDX58nhdM7WCcDpdJxMbKcgb24DWbhQEkck=; b=vli0vAueLkMiysLdJJ7FjGV3e/HWdN9cAIirdd87muivaRgXm82kEizs17OAEvLs2GK u72FOCA7iki6Ey5XG1S3Wrv+C7UZ+fLr4s3ZXSKVb40nzqOh2ilEKk18Q1KMUR2AGkTag CRmW1HXUpmg5b7wPgSExFhEbUPzwJNaXzho= X-RZG-AUTH: :IWkkfkWkbvHsXQGmRYmUo9mls2vWuiu+7SLGvomb4bl9EfHtO3s6 X-RZG-CLASS-ID: mo00 Received: from mail-wm0-f48.google.com ([74.125.82.48]) by smtp.strato.de (RZmta 39.7 AUTH) with ESMTPSA id 20aab3sA7H0TFWW (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp384r1 with 384 ECDH bits, eq. 7680 bits RSA)) (Client did not present a certificate) for ; Mon, 7 Nov 2016 18:00:29 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id a197so195027591wmd.0 for ; Mon, 07 Nov 2016 09:00:29 -0800 (PST) X-Gm-Message-State: ABUngvf9gNvBbVjo9f27cTh97vdRUfbwizvU+HDARp5rFgChdnapQfv/U/+XYwI0grcTzG1r9dm7W5vUxkSsrw== X-Received: by 10.28.18.5 with SMTP id 5mr7362437wms.35.1478538029381; Mon, 07 Nov 2016 09:00:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.135.133 with HTTP; Mon, 7 Nov 2016 09:00:28 -0800 (PST) In-Reply-To: References: Date: Mon, 7 Nov 2016 18:00:28 +0100 X-Gmail-Original-Message-ID: Message-ID: To: =?UTF-8?Q?Pedro_Magalh=C3=A3es?= Cc: PHP Internals List Content-Type: multipart/alternative; boundary=001a11469796074f180540b8f635 Subject: Re: [PHP-DEV] Binary string forward compatibility removal From: me@kelunik.com (Niklas Keller) --001a11469796074f180540b8f635 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2016-11-06 20:22 GMT+01:00 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 scann= er > 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 comple= x > given the number of tests that were written with this forward compatibili= ty > 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=C3=A3es > > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > No matter whether we choose to merge this somewhere in the future or not, there's no reason to have (binary) in the phar stub anymore. I have just opened a PR to remove the (binary) casts there again, as we no longer need that forward compatibility: https://github.com/php/php-src/pull/2190 As for the removal itself: There's no particular reason to remove it now, but we could at least issue a deprecation warning. Regards, Niklas --001a11469796074f180540b8f635--