Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109007 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 43359 invoked from network); 13 Mar 2020 22:14:42 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 13 Mar 2020 22:14:42 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4852F1804E6 for ; Fri, 13 Mar 2020 13:36:27 -0700 (PDT) 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,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS11403 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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, 13 Mar 2020 13:36:26 -0700 (PDT) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0F9A5223EE for ; Fri, 13 Mar 2020 16:36:26 -0400 (EDT) Received: from imap26 ([10.202.2.76]) by compute7.internal (MEProxy); Fri, 13 Mar 2020 16:36:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=xkRtuUEvRCNn5ZUMo4MlAuxMBzLBFxl72RPp+62oK E4=; b=flInzBfqQpX81cD0DyVtqKTxolCYubNIVfmg2LLKq3AnhMk1mw0RQP91K gXeKyxGSobDyhf49Oo3MW465BN58KdLMnec2m426Cy5ws1wZ7XaLn2YfNKxoB8Tp 3X9BVhxq4sXCqWDvaW49qL6kbeQ3xwD4EZG/CTk7S8sjFfgGfQgkecVfSm4PoeXp wx/JFp66U0P8WH3QXFRIDG/psjIbBR3O0Y98mpIromwEg332kIUPlMcPuouhV5kN Oo6OlVMJ8+6NL0yPEkFTi+jO7mp7UYFNnnrHTlsegERMQD0dYtM9gUb8Lobczv0G WESjY6q1x/bUNkWr+taMd3hGK8ccA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvjedgudeflecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfn rghrrhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrd gtohhmqeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 968F414200A2; Fri, 13 Mar 2020 16:36:25 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-991-g5a577d3-fmstable-20200305v3 Mime-Version: 1.0 Message-ID: In-Reply-To: <102D234E-BC5D-42B2-ABC4-93980C1F76A4@pmjones.io> References: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> <0B40E6E5-342F-4D81-9CAA-A0C0739A7718@pmjones.io> <102D234E-BC5D-42B2-ABC4-93980C1F76A4@pmjones.io> Date: Fri, 13 Mar 2020 15:36:04 -0500 To: "php internals" Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2) From: larry@garfieldtech.com ("Larry Garfield") On Fri, Mar 13, 2020, at 9:55 AM, Paul M. Jones wrote: > > As with anything any of us has written, I=E2=80=99m not 100% sold on= =E2=80=98Current{Request,Response}` even after writing it, but I think = it=E2=80=99s at least a little more specific about what they do, when th= e namespace is taken into account. >=20 > `Current{...}` is not something we had previously considered; that=20 > would net us, in the global namespace: >=20 > - CurrentRequest > - CurrentResponse > - CurrentResponseSender >=20 > I will need to ponder on those as well. >=20 > Any further thoughts or opinions on this, Stephen? Or from anyone else= ? I am still negative on the RFC overall, but I'll throw this out there: * The RFC by design is trying to take the super-globals and make them OO= Py; no more, no less. * The super-globals are not based on HTTP. They're based on CGI, which = is sort of but not quite an HTTP request. * So... call it CgiRequest/CGIRequest? (I am also ignoring capitalizati= on.) Because that's what it is: It's CGI request data wrapped up into a= n object, no more, no less. (The fact that it is no more is the reason I'm not a fan, but at least t= hen it's accurate as to what it is, and isn't, and doesn't namespace clo= bber those libraries that are modeling HTTP, rather than CGI.) The response object is less CGI-bound, so it could still be ServerRespon= se since it's a response from a server, and not intended for any other u= ses (like HTTP client libraries). =20 --Larry Garfield