Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100092 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94821 invoked from network); 28 Jul 2017 18:29:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jul 2017 18:29:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 84.19.169.162 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 84.19.169.162 mail.experimentalworks.net Received: from [84.19.169.162] ([84.19.169.162:58404] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/D8-40376-1728B795 for ; Fri, 28 Jul 2017 14:29:07 -0400 Received: from kuechenschabe.fritz.box (ppp-46-244-186-182.dynamic.mnet-online.de [46.244.186.182]) by mail.experimentalworks.net (Postfix) with ESMTPSA id 7D8695F184; Fri, 28 Jul 2017 20:29:01 +0200 (CEST) Message-ID: <1501266540.2749.24.camel@schlueters.de> To: Sara Golemon , PHP internals Date: Fri, 28 Jul 2017 20:29:00 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...) From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Fr, 2017-07-28 at 11:11 -0400, Sara Golemon wrote: > I'm sure there will be many strong opinions on this, but let's move > this to a new thread. :D Language-wise, I think, refactoring that system would be good. I guess a refactoring is a register_globals-like project, which took 10 years from first deprecations to final removal, since many people abuse it and parameter handling is core to PHP. For read-only access we already have an API: filter_input() etc., maybe the interface could be made "nicer." GitHub shows 267,811 hits for that, but only few "real" "productive" cases. From tutorials etc. this doesn't seem to be widely accepted. https://github.com/search?l=PHP&p=1&q=filter_input&type=Code&utf8=%E2%9 C%93 johannes