Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96757 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40092 invoked from network); 7 Nov 2016 12:37:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2016 12:37:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=pthreads@pthreads.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=pthreads@pthreads.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain pthreads.org from 74.125.82.43 cause and error) X-PHP-List-Original-Sender: pthreads@pthreads.org X-Host-Fingerprint: 74.125.82.43 mail-wm0-f43.google.com Received: from [74.125.82.43] ([74.125.82.43:36641] helo=mail-wm0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 77/2C-33116-F9570285 for ; Mon, 07 Nov 2016 07:37:53 -0500 Received: by mail-wm0-f43.google.com with SMTP id p190so179970863wmp.1 for ; Mon, 07 Nov 2016 04:37:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pthreads-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Sh1EhmtaN6vYRFlD3mZhN7DvGvZYbWJjeovc9Z7Nq+w=; b=NZ60T5uuRuodeTv5pazg9W7QQOpdtpifRFhM5de+kh5udi9yUY5a+s8Z36Sf9TgoUu WBIuFCsxbQp1zvvYUOQq0yOCMDbgON+5snJxUSaaH0dRDo/nTnNEojAK1HjQaDxeJ3mw Tu5hGODyPdF9mcQrbbzYwnuVdkV0Lg7ifNs/m6t5TzjTUvtoVYYnHiS8959HoigGMLC9 KWTAdJTu09yb9qC7+h7PRZAamlKlvbsZ7qe+bVUp4QNuU2cdwlUkSsU+wQFQQ0Liljn+ /q7IfWwntKNz7MmIOci1ES3v3xJmrSDYZ289ZA4oKD/Pxd16qVFSV46xtgueDwrIQCcw nCNw== 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:from:date :message-id:subject:to:cc; bh=Sh1EhmtaN6vYRFlD3mZhN7DvGvZYbWJjeovc9Z7Nq+w=; b=hIM0y1tKgGlfnIHsVqZ2yTq+MdZEPdRNElRevYfu4UGKi6yNPLvufmIJhcpRpLD3Zt mmUTT5QnF5WhQ84KJ467ipW7q8dNgQ8ENm2044qXIn+aXudPIZa/PhCL9k78CVgxAtPC sDroJ/zgq3ItqiHPyykUewMn4AOGcWfpqbidShIIy0c+vyHTjlhn5PFeBf/Y0skexH1H BjmYUNiYt7OQ/sURt+qRMMhj+Gi0IIqaR6QlQrhemCyLJ01DitGM+eHvzFjwVJ+Xl0FB JNmlnbmUPSdKQqDYocymE/s1VAf7H02MoGubz8PO+lKAkcjqW8GYh/PxiPJ2pB/jxNdy 3p1g== X-Gm-Message-State: ABUngveZ548u1Jl6sQfMrHOC3WI08ABzS6jmQWG7g8Jxy1xJgurLLAPo4Mz28Lr02Z3X7m+oRTnb63fQ+LERBQ== X-Received: by 10.194.87.42 with SMTP id u10mr5259033wjz.213.1478522268372; Mon, 07 Nov 2016 04:37:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.80.161.230 with HTTP; Mon, 7 Nov 2016 04:37:47 -0800 (PST) X-Originating-IP: [109.157.245.230] In-Reply-To: <2B.5B.33116.CD460285@pb1.pair.com> References: <7A.F8.33116.E57DF185@pb1.pair.com> <2B.5B.33116.CD460285@pb1.pair.com> Date: Mon, 7 Nov 2016 12:37:47 +0000 Message-ID: To: Andrea Faulds Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0102e3d0996b8a0540b54afa Subject: Re: [PHP-DEV] Re: Binary string forward compatibility removal From: pthreads@pthreads.org (Joe Watkins) --089e0102e3d0996b8a0540b54afa Content-Type: text/plain; charset=UTF-8 Afternoon Andrea, A case can be made that the binary cast might at some point do something: "(binary) $ustring" There is no case whatever for the literal b prefix, it will *never* have a function if we are not changing the default string representation. If we do adopt a literal prefix for unicode strings, it's going to be rather confusing to learn that u"" does something and b"" is also supported, but b"" doesn't, and has never done anything. OP: I think this should be split into two RFC's and voted on separately, it certainly can't be merged by anyone as a PR. Cheers Joe On Mon, Nov 7, 2016 at 11:26 AM, Andrea Faulds wrote: > Hi, > > Joe Watkins wrote: > >> Morning Andrea, >> >> Who is widely deploying something that does absolutely nothing ? >> > > PHAR uses (binary), or so Pedro's email says. > > >> The only reason to keep it would be that we are going to change the >> default representation, as pointed out we're not. >> > > If we were adding it tomorrow, maybe, but `b` and the (binary) cast are > already here. A high standard must be met for removing features. These > aren't a security problem, nor a maintenance burden. There's not a good > case for removing them and breaking backwards-compatibility > > >> This cannot have been left in for considered reasons, it was just >> forgotten about. >> > > If it was to be removed, the time to do so would have been right after PHP > 6's failure. But it's been years now. I'm unconvinced there's a strong case > to remove it. > > Thanks for your reply. > > -- > Andrea Faulds > https://ajf.me/ > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --089e0102e3d0996b8a0540b54afa--