Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:108489 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 67823 invoked from network); 11 Feb 2020 18:44:48 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Feb 2020 18:44:48 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 67B62180542 for ; Tue, 11 Feb 2020 08:58:45 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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-yw1-f45.google.com (mail-yw1-f45.google.com [209.85.161.45]) (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 ; Tue, 11 Feb 2020 08:58:44 -0800 (PST) Received: by mail-yw1-f45.google.com with SMTP id b186so5517163ywc.1 for ; Tue, 11 Feb 2020 08:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=benramsey.com; s=google; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=EFm4mzTZIiNH8F5v3On5tlj1bYRzEzmHtIndR4QelwA=; b=cDwnmxfwubD60xHkR/H+uoA/gK7QRQQryh+5Qamyh9fqx+SJjW8KcJlKiKQxRsIduY gnXMlg9ZJRW3VqB417poB75iO8u9/02sPCZHRCHfRxNXgE1XR6BQ3g5prpsRkiIHGlTI h83ehiXi7DAps2nk+NWTslIpsGwNmP55dssGCIBiFeOf59sm+0/MLaBISSckaS7Hk9bF 4d1SBIFsvoLbCdIROL4fxnt58stJ6yJ6BCPkfIOg5v+VlbzhSPzbrmjo5xz9sc/5hzmM 63UlPNqoFUFdq/xIXEcjQD4KDi3CbUlPqAO2Y0TT5D258xyBPjNta9tGQjJR/GxfSdP0 Uk8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=EFm4mzTZIiNH8F5v3On5tlj1bYRzEzmHtIndR4QelwA=; b=rFz3fPq3tTi8S5K+T53K5m5NjpuYsWEztiCps/Vofv2Oltj12po7s13P2N4qpbly/k sPp27GnAPbWLYFPwtCL6AaDvv9p+vxnpM/4/W4kB5bs43JnfQPG+EWtva7GkhShxCmJO T5NsUE63sunNSWCMQMtjHOfhyq2j1nSSpbgw96Frmd9eBok6fGwwrr3I4sgnD09tZ0mi Ydm5fBBYF0Yx76R1WSJCr9de6cUpx+mIKMp7jMli9mPh3IO4nfRUqSB5eyaqhtNUFwjE RQWk9x9pmls34rlJ5QgHtRlGBbAHR1tmn+mV1ArppAB8sgnxLtHcl20woeoeItf9OPtU qAag== X-Gm-Message-State: APjAAAVRSqc8wjiNoAf7e8OBhTG70SJGFDtvN0UOnbyr/zYgEuJk+euI qTawAScbrXU8ofoqEtXWfo33S9GSPFCPXw== X-Google-Smtp-Source: APXvYqycyLB71AaV78SBLVk7YL0n38VqczhDDW73WNoyq2LYPv22l3sI+x+mi9znirIMghduih2/rA== X-Received: by 2002:a81:2fd8:: with SMTP id v207mr6422314ywv.2.1581440322384; Tue, 11 Feb 2020 08:58:42 -0800 (PST) Received: from [10.10.42.56] (h96-61-170-50.lvrgtn.dsl.dynamic.tds.net. [96.61.170.50]) by smtp.gmail.com with ESMTPSA id q130sm2148110ywg.52.2020.02.11.08.58.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Feb 2020 08:58:41 -0800 (PST) Message-ID: Content-Type: multipart/signed; boundary="Apple-Mail=_40FAD88C-ECA8-40AC-BA70-19019A2E4046"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Date: Tue, 11 Feb 2020 10:58:40 -0600 In-Reply-To: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> Cc: internals@lists.php.net To: "Paul M. Jones" References: <50BD013E-CF72-414C-BBC0-A7A2E45CBDDB@pmjones.io> X-Mailer: Apple Mail (2.3608.60.0.2.5) Subject: Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2) From: ben@benramsey.com (Ben Ramsey) --Apple-Mail=_40FAD88C-ECA8-40AC-BA70-19019A2E4046 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Feb 10, 2020, at 10:18, Paul M. Jones wrote: >=20 > Hi Internals, >=20 > After a couple of years of incubation, I am happy to offer a second = version of this RFC: >=20 > https://wiki.php.net/rfc/request_response >=20 > It proposes an object-oriented approach around request and response = functionality already existing in PHP, in order to reduce the = global-state problems that come with superglobals and the various = response-related functions. >=20 > The SQLite "about" page says, "Think of SQLite not as a replacement = for Oracle but as a replacement for fopen()." = Likewise, think of this RFC not as = a replacement for HttpFoundation or PSR-7, or as a model of HTTP = messages, but as an object-oriented alternative to superglobals, = header(), setcookie(), setrawcookie(), and so on. >=20 > Thanks in advance for your time and consideration while evaluating it. Regarding the array of arrays for $accept* and $forwarded, what are your = thoughts on using value objects with properties, rather than arrays with = keys? AcceptValue * string $value * string $quality * array $params * ?string $type * ?string $subtype ForwardedValue * string $by * string $for * string $host * string $proto Cheers, Ben --Apple-Mail=_40FAD88C-ECA8-40AC-BA70-19019A2E4046 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iHUEAREIAB0WIQToXQMR3fpbrPOmEOewLZeYnIwHGwUCXkLdQAAKCRCwLZeYnIwH GzIAAPoDDrrHH+f+YcNnSbWztKJ/5ApltUq/hTgFiy2F7ZI/mgD/evuXtIdJPLzg 5mV3FSmSojvXG/UiHtvSXYyjywuRvx4= =Qqj1 -----END PGP SIGNATURE----- --Apple-Mail=_40FAD88C-ECA8-40AC-BA70-19019A2E4046--