Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98943 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76670 invoked from network); 2 May 2017 19:49:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 May 2017 19:49:03 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.223.173 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.223.173 mail-io0-f173.google.com Received: from [209.85.223.173] ([209.85.223.173:34530] helo=mail-io0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 42/7A-02776-CA2E8095 for ; Tue, 02 May 2017 15:49:02 -0400 Received: by mail-io0-f173.google.com with SMTP id a103so168443461ioj.1 for ; Tue, 02 May 2017 12:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vXJblq69J9uCw1ioETasRxBZGtE/1FMyC4F09YGZG8M=; b=e+m38S8S9cH2UAATWE86XFiOvdJQqlyILdcGT2y+XaqYNeVs99VrK/LWTtmjI0A/7l jih3sMin4KBwqq07BHldTLb5lZEEqTPZv/kMoGCFdMYdD6IAfp8fC7Ty8dldKnmOJm+5 1GPTAcGD2p9Lfc2+RHcuKyfoZlI6VihXWNMvM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vXJblq69J9uCw1ioETasRxBZGtE/1FMyC4F09YGZG8M=; b=msRBYMvgfTzluvtY5Bporl4WYMHcsuzv7K49KCS8BY6DUvWT5rKi/ySlVXOD03PleH zV5r6Gecwx9rBuG+uRiAtS9RrFt12OyN1bgLa8/WmV/Bd7olnHGxUYoTBjKk5CBye/zm KndPbgZanbvoAczFWhjQepXQkKjS7jsJCbZHCdyluTTxRywcntR4mD2mOfU1o2qXxR/m liQpq4/4h90pX4O8uRwZH0gstFeMeLI3u8vudq1N7cs1CilHc162luhyCZMjhqaJNUg9 ATY5G9+lbI5x0qXJtG+lDBWy8/04qYML6l7q6Rub4WNPFENFV3lbqsSDBbcm+FHco7vQ gLZg== X-Gm-Message-State: AN3rC/4BsU5Ga7Dxm4KjBnw0nrMYNKLYnqpGTU+YzYC2t3ggjCoCSFDN 2TSQtx7tUf8JVYf/XYPUm/DAHEx5Xg== X-Received: by 10.157.42.111 with SMTP id t102mr11256155ota.123.1493754537482; Tue, 02 May 2017 12:48:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.110.7 with HTTP; Tue, 2 May 2017 12:48:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 2 May 2017 22:48:56 +0300 Message-ID: To: "Christoph M. Becker" Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [Discussion] Dots and spaces in GPC variable names From: narf@devilix.net (Andrey Andreev) Hi, On Tue, May 2, 2017 at 5:07 PM, Christoph M. Becker wrote: > On 02.05.2017 at 12:56, Andrey Andreev wrote: > >> With parse_str() usage without a second parameter being deprecated, I >> was looking to possibly drop the behavior where it replaces spaces and >> dots with underscores in the result array, and ... As it often turns >> out - it's not that simple, because it re-uses the code that handles >> GPC vars. >> >> I didn't even know this mangling happened with GPC vars. I can only >> assume that's legacy from the the register_global days, as I certainly >> don't see a reason for it now. Am I missing something? >> >> And more importantly, can we change that? It's a significant BC break, >> yes, but the current behavior is horribly broken IMO. > > This issue has been already brought to the list quite a while ago[1]. > IMHO, the big problem is the subtle BC break. > > [1] > Thanks for linking that. It's encouraging as I'd expect a previous discussion to have gathered mostly negative opinions due to the BC break. That old thread is from just the time when 7.0 was supposed to be released, so it was certainly an opportunity missed by a few months. I'm not surprised by the suggestion for targeting 8.0, but perhaps we could think of a way to conditionally disable the mangling in 7.x and then remove it entirely in 8? I hate to say INI directives, but that's surely one way for a smoother transition. Cheers, Andrey.