Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:106216 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38470 invoked from network); 16 Jul 2019 10:29:36 -0000 Received: from unknown (HELO mail-lj1-f171.google.com) (209.85.208.171) by pb1.pair.com with SMTP; 16 Jul 2019 10:29:36 -0000 Received: by mail-lj1-f171.google.com with SMTP id t28so18917940lje.9 for ; Tue, 16 Jul 2019 00:50:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pwk8k4ipe9c1MaKuW/Mq1twgPIB73YnwP0k+XodYAJs=; b=nvZPAwBOeJmgtdee3FXdI3HB2qv0zmG2mHQAV0PPiLYoVx0hclkFe4upx5pN0E/PJ/ 4Jzf0scG9R6gxXxe+I9wXmufjwyavz8W5dfuC7/1hBpfNvyQfriw6NJY1ag8MyCfKrxr 1F/aAhfE/Gpj+Tjhen1whMFkVypHr/LrgNrik9zSemdLCb0oXYI6ADkco/nbW7QbShMZ EP40Ez5TxC6ySq3YtNeoLsUkCP+PczVD3sQF/8t1X19Pgth8j7Bz+fy902YcyYj6iQ2L xflkpMm9ynDntf2aIfXeEIm6OQA6mvSdyM2nyzg0uNO6oga1Y5GdL+H4FR1hD+7XIYdI U0vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pwk8k4ipe9c1MaKuW/Mq1twgPIB73YnwP0k+XodYAJs=; b=Ha+3z9r9HrRzoGNkEQphTkbQd1XcXu07a25gyTK5BMZf7/mCacsjsNybwPkbbE9GUa hlthaVz+NxIti2ft3kZ4s2g8G6kbvABh8AQAB5xJhIeFJfNMLZGuuJuxm+1AQgVsTpp9 XQj80hbqvnhF980vlqwaxyszbRa2+QGcv3NmRxPgAFlzGXIWa0pAxbO6bx2CuES17/xj bZfcv9JBWgkqeDNJ8r9RTvoZKGGpQF0M+0WoBsYi6jUlNU/0wEuA6CGERkaDGOyrrXrN tY1Qr0irNnFdKrmiZha/Mz7i7VAW03q2seeiLpYdl3+QzzQtvxIi/iJz6gk4m6w3Im5i X4aQ== X-Gm-Message-State: APjAAAXDTotkf7pft4nkO4cDPu6I7KC86qZHe+67gt+M8Z21jDSh5Jpr 7YkI3jmAg/j19jKe5Ji7Kf1Fx314NxzxUySFYGs= X-Google-Smtp-Source: APXvYqw1+zsKbHSOxcT3uFN4a5y20U94SeZzkAh/xw9gfnlAWMtDbXV4X24J+Ak9b1x1X0Qbqm6m2/4WZfyZiCcCWz8= X-Received: by 2002:a2e:89c8:: with SMTP id c8mr16965607ljk.70.1563263456460; Tue, 16 Jul 2019 00:50:56 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 16 Jul 2019 09:50:40 +0200 Message-ID: To: Arnold Daniels Cc: PHP internals Content-Type: multipart/alternative; boundary="00000000000003446e058dc7a3ce" Subject: Re: [PHP-DEV] Stop replacing dots with underscores in query, post and cookie parameters for PHP 8? From: nikita.ppv@gmail.com (Nikita Popov) --00000000000003446e058dc7a3ce Content-Type: text/plain; charset="UTF-8" On Tue, Jul 16, 2019 at 3:40 AM Arnold Daniels wrote: > Hi, > > PHP replaces dots with underscores for $_GET, $_POST and $_COOKIE. This > behavior once made sense because of Register globals. The explanation in > the manual also still implies that query and post parameters are converted > to variables (see > https://php.net/manual/en/language.variables.external.php#language.variables.external.dot-in-names). > Register globals has been removed since 5.4.0 and thus this behavior serves > little purpose. > > I think it would be good to remove the conversion in PHP 8, as it's a > general cause of confusion and annoyance for anyone who comes across it. > > Is there a good reason to keep this behavior in PHP 8? > This has been discussed a few times already, and I think that everyone agrees that this behavior should go, but not necessarily on the migration path. There is an RFC here: https://wiki.php.net/rfc/on_demand_name_mangling I think that the latest version of that RFC, that basically proposes to drop the behavior and tell people to use a polyfill is fine. Nikita --00000000000003446e058dc7a3ce--