Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109077 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13992 invoked from network); 16 Mar 2020 20:13:09 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 16 Mar 2020 20:13:09 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A6BC11804E0 for ; Mon, 16 Mar 2020 11:35:38 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 16 Mar 2020 11:35:38 -0700 (PDT) Received: by mail-qv1-f49.google.com with SMTP id m2so9401035qvu.13 for ; Mon, 16 Mar 2020 11:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newclarity-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Sb38yUJtJASNIE4jzgJOUxzlWQPyDJxAoAgZ8qSYq0w=; b=IZ+QaDpBIhXuYwBHQlKoSX+RMLTwgmE795LJ47Z2KBURt4GFFLya8xeY9Cth/15bdk +kGsb+m6Nl44b7jQ/+PDURoJqsSl6bsU4Z9UuKzVEugcK6N44e9zmVI3Pwdk0yYUBN68 7rWYMQBCF0DtZik556IOzBJysfUhnJBQX6G5eNGfxA7QMfE9eo7fruDiL6lp6D/X2IJR UFh+DS8sMSRp4l3MGaZH7cdK+kk4eqUnUx2vGMJBt9IyCXv8yuNdANfw2T41gBcjTXd8 eL93fA+yo2iKtegicMEpr3m0OiGr6k0KpEgJtFncMb2czuuVjDt6KtHx0c7A3HlVTbCj lGZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=Sb38yUJtJASNIE4jzgJOUxzlWQPyDJxAoAgZ8qSYq0w=; b=I+ae4JT+pkb7RhhfmxHVFQ9h3fPVTSDcPJmqkLaMamt9+QLJ2V1OmPK+EeozCcO4kd 7AWndC0C0tiV1QYwbyJHqZKv0/eTbP5ZaP2nKS7QV28HiasBHlr//21pzp0kbvm7RNwN h5d5P/PYGuollYmvLQD6rVpncR5zB3rsVAzOR/YBxOMGsmD5kefrU4yWLmjxh7W0sq+v UHOYjRZvmkXtZeWRbjAjZ5Ew9h4zxMCIfNUZp6i+CNdITvGFGHD6yUYjeU+aaK2J3iv7 3BAafLLZ2EsFlCrn0069amql33qgmjXqTCvmpA5dKM7QmX1dDaHIz//16Jb3rmANosML GveA== X-Gm-Message-State: ANhLgQ1B8sQ5ZdUnNaEOcx+7Q2b9EjhbeCEgbCGvJ2siv7ZxTfN8ggwj 54QUcvo9+M39As1rgwG2Xmj1Jw== X-Google-Smtp-Source: ADFU+vsR081HMugJBrn9OS+tp5y81bpGWlmrkdTpEcgDN0bG6PSXv/jtyz8wJnYr5yVvFyWI8YLUhg== X-Received: by 2002:a0c:fb03:: with SMTP id c3mr1172588qvp.13.1584383737401; Mon, 16 Mar 2020 11:35:37 -0700 (PDT) Received: from ?IPv6:2601:c0:c680:5cc0:908f:386e:e286:3224? ([2601:c0:c680:5cc0:908f:386e:e286:3224]) by smtp.gmail.com with ESMTPSA id b145sm324334qkg.52.2020.03.16.11.35.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 11:35:36 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) In-Reply-To: <4C35AB9D-277D-41AE-8364-83EC1A782F4C@pmjones.io> Date: Mon, 16 Mar 2020 14:35:36 -0400 Cc: Rowan Tommins , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <19B3A3A7-9AD2-40B8-A7B0-F2E029C26D81@newclarity.net> References: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> <0B40E6E5-342F-4D81-9CAA-A0C0739A7718@pmjones.io> <102D234E-BC5D-42B2-ABC4-93980C1F76A4@pmjones.io> <9c8064d1-52cf-c31d-f023-e323b5c2dce5@gmail.com> <4C35AB9D-277D-41AE-8364-83EC1A782F4C@pmjones.io> To: "Paul M. Jones" X-Mailer: Apple Mail (2.3445.104.11) Subject: Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2) From: mike@newclarity.net (Mike Schinkel) > On Mar 16, 2020, at 12:04 PM, Paul M. Jones = wrote: >=20 > Turning it over in my mind, I wonder if maybe a `Sapi` prefix would be = a better alternative along this path, especially since these objects = relate to the "interface between web server and PHP." = A `Sapi` = prefix would net us: >=20 > - SapiRequest > - SapiResponse > - SapiResponseSender >=20 > The only obvious objection is that the SAPI list includes 'cli'. While = it not strictly outside the realm of the RFC, it certainly is not the = focus; but then, tests running at the command line will be under the = 'cli' SAPI, so there's at least some sort of rationalization for it. >=20 > Overall, I think `Sapi` looks better than `Cgi`, and certainly better = than `Server` or the other names we've considered. >=20 > Any further thoughts on naming? That works well IMO. >> I also just realised that it would make sense to rename $_SERVER in = the object, the same way $_GET has become "query" and $_POST has become = "input". Maybe $request->cgi or something? >=20 > I sympathize with the desire to rename (or even restructure) the = apparent catchall of `$_SERVER`. But I am still reluctant to do so, = especially as no other researched projects use a different name here = (whereas some have replaced `$_GET` with `$query`, etc). >=20 > Does anyone besides Rowan long for a different property name here? = What are your suggestions, if any? I don't think this is important anymore if we call it Sapi or CGI. It = was only an issue IMO if if we were still wanting to call it Request. But again, just my opinion. -Mike