Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108589 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 15826 invoked from network); 14 Feb 2020 23:57:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 14 Feb 2020 23:57:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 875981804DA for ; Fri, 14 Feb 2020 14:12:30 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29169 217.70.176.0/20 X-Spam-Virus: No X-Envelope-From: Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 14 Feb 2020 14:12:29 -0800 (PST) Received: from samurai.attlocal.net (107-223-28-39.lightspeed.nsvltn.sbcglobal.net [107.223.28.39]) (Authenticated sender: pmjones@pmjones.io) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 8389E100004; Fri, 14 Feb 2020 22:12:26 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) In-Reply-To: Date: Fri, 14 Feb 2020 16:12:24 -0600 Cc: Bruce Weirdan , =?utf-8?Q?C=C3=B4me_Chilliet?= , Niklas Keller , PHP Development Content-Transfer-Encoding: quoted-printable Message-ID: References: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> <5904137.fSVIMsojiJ@mcmic-probook> To: Benjamin Morel X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2) From: pmjones@pmjones.io ("Paul M. Jones") Hi all, > On Feb 14, 2020, at 10:47, Benjamin Morel = wrote: >=20 >>=20 >> What about $query and $body? That would be closer to the terminology >> used in HTTP RFCs. >=20 >=20 > The problem is that $body is typically used to get the raw message = body as > a string or stream. >=20 > I was thinking more something along the lines of $bodyParams, which is = more > verbose but leaves no ambiguity: *$queryParams* and *$bodyParams*. I get the desire to disambiguate. But as an added consideration, there's = a desire for consistency; when adding a -Params suffix to those names, = it might then make sense to have $serverParams, $cookieParams, etc. Looking at it that way, I don't think a -Params suffix is necessary. I = would think $query would be enough. As for the other name, the one for the $_POST equivalent, $body doesn't = seem quite right to me; it seems a little close to $content. I've also = been thinking about $values, $params, $parsedContent, $contentValues, = $bodyValues, $contentArray, and other variations with and without = prefixes and suffixes, but $input is the one that feels like the = least-terrible alternative to $post for me, esp. given the connection to = php://input. --=20 Paul M. Jones pmjones@pmjones.io http://paul-m-jones.com Modernizing Legacy Applications in PHP https://leanpub.com/mlaphp Solving the N+1 Problem in PHP https://leanpub.com/sn1php