Newsgroups: php.internals
Path: news.php.net
Xref: news.php.net php.internals:108534
Return-Path: <come.chilliet@fusiondirectory.org>
Delivered-To: mailing list internals@lists.php.net
Received: (qmail 6851 invoked from network); 13 Feb 2020 12:38:34 -0000
Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5)
  by pb1.pair.com with SMTP; 13 Feb 2020 12:38:34 -0000
Received: from php-smtp4.php.net (localhost [127.0.0.1])
	by php-smtp4.php.net (Postfix) with ESMTP id 2BBA21804AB
	for <internals@lists.php.net>; Thu, 13 Feb 2020 02:52:57 -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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,
	SPF_PASS autolearn=no autolearn_force=no version=3.4.2
X-Spam-ASN: AS12876 195.154.0.0/16
X-Spam-Virus: No
X-Envelope-From: <come.chilliet@fusiondirectory.org>
Received: from smtp.opensides.be (smtp.opensides.be [195.154.20.141])
	by php-smtp4.php.net (Postfix) with ESMTP
	for <internals@lists.php.net>; Thu, 13 Feb 2020 02:52:56 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
	by smtp.opensides.be (Postfix) with ESMTP id ABEC249D156
	for <internals@lists.php.net>; Thu, 13 Feb 2020 11:52:54 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at opensides.be
Received: from smtp.opensides.be ([127.0.0.1])
	by localhost (smtp.opensides.be [127.0.0.1]) (amavisd-new, port 10024)
	with LMTP id W5X9N9I0DZ-M for <internals@lists.php.net>;
	Thu, 13 Feb 2020 11:52:52 +0100 (CET)
Received: from mcmic-probook.opensides.be (63.120.199.77.rev.sfr.net [77.199.120.63])
	by smtp.opensides.be (Postfix) with ESMTPSA id 37FC349D155
	for <internals@lists.php.net>; Thu, 13 Feb 2020 11:52:52 +0100 (CET)
To: internals@lists.php.net
Date: Thu, 13 Feb 2020 11:52:45 +0100
Message-ID: <5904137.fSVIMsojiJ@mcmic-probook>
Organization: FusionDirectory
User-Agent: KMail/5.2.3 (Linux/4.9.0-12-amd64; KDE/5.28.0; x86_64; ; )
In-Reply-To: <CANUQDCiP31aEqULqeGpN66ESHarKxWuXgQt_CqWeCLZc+1L-fA@mail.gmail.com>
References: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> <CANUQDCiP31aEqULqeGpN66ESHarKxWuXgQt_CqWeCLZc+1L-fA@mail.gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="iso-8859-1"
Subject: Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2)
From: come.chilliet@fusiondirectory.org (=?ISO-8859-1?Q?C=F4me?= Chilliet)

Le mercredi 12 f=E9vrier 2020, 19:20:56 CET Niklas Keller a =E9crit :
> Naming
>=20
> I think we shouldn't take over the naming of the super globals, e.g.
> $_GET really contains the query parameters and has nothing to do with
> GET or POST, so $request->getQueryParameter(...) would be a better
> name.

I think this remark is really on point.
GET and POST are HTTP methods and not ways of passing data. You can have qu=
ery parameters on any request, and you can have POST data with a lot of oth=
er HTTP methods, as is commonly used in REST APIs.

I do not like the name getQueryParameter at first sight, but I do not like =
get() and post() for getting values from $_GET and $_POST.
I would expect a method named post to actually post something, not just get=
 a value.

=2D-=20
C=F4me Chilliet
=46usionDirectory - https://www.fusiondirectory.org