Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108440 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 68047 invoked from network); 10 Feb 2020 22:30:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 10 Feb 2020 22:30:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D32921804D7 for ; Mon, 10 Feb 2020 12:44:37 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,SPF_HELO_PASS, SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS31103 84.19.160.0/19 X-Spam-Virus: No X-Envelope-From: Received: from mail.toneristzuen.de (mail.toneristzuen.de [84.19.169.162]) by php-smtp4.php.net (Postfix) with ESMTP for ; Mon, 10 Feb 2020 12:44:37 -0800 (PST) Received: from maniacmansion.fritz.box (ppp-188-174-48-94.dynamic.mnet-online.de [188.174.48.94]) by mail.toneristzuen.de (Postfix) with ESMTPSA id 7574F46FAA; Mon, 10 Feb 2020 21:44:35 +0100 (CET) Message-ID: <5500e8e70ed1cdc162e5848b8959c63d8adc4853.camel@schlueters.de> To: "Paul M. Jones" , internals@lists.php.net Date: Mon, 10 Feb 2020 21:44:29 +0100 In-Reply-To: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> References: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2) From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Mon, 2020-02-10 at 10:18 -0600, Paul M. Jones wrote: > After a couple of years of incubation, I am happy to offer a second > version of this RFC: > > https://wiki.php.net/rfc/request_response What indication is there that this will be more successfull than the filter API? The filter API was our previous attempt to improve upon input handling. With this new API we have three major ways (superglobals, filter, new API) Historically PHP isn't really successful in providing higher level APIs to things and I think leaving this to userland is very viable, since composer and performance improvements in later PHP 5 and PHP 7. Also use of $_* is fast to grep for and gives me directly in the grep an idea about the mess-factor of a code base, tracing all calls to a member of an instance of a class is harder. (and yes, references etc. to super globals aren't trivial to trace, but also rare) Let PHP provide the access to the data and promote the API library of the year. johannes