Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97670 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32471 invoked from network); 10 Jan 2017 23:23:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2017 23:23:07 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.179 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.217.179 mail-ua0-f179.google.com Received: from [209.85.217.179] ([209.85.217.179:32958] helo=mail-ua0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 59/29-55699-8DC65785 for ; Tue, 10 Jan 2017 18:23:07 -0500 Received: by mail-ua0-f179.google.com with SMTP id i68so394612246uad.0 for ; Tue, 10 Jan 2017 15:23:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rvKf7mX7OxE/Q4GSdpDNoPhhBgYQOM6THV107pgOjyg=; b=PSpyogelUN1reIVeWIEm62r90rS0CVnKH94NsEM9hxhaE8t6yjcAFpujYQ/by1Nwra NZS+Pz5+/JRGM1tQjlwNAlA1myYUT/A9Aq6G68MhMlV91aBUhciV/QkIK/m9wI0taXrq hjEyrbhFp4sKFrM8OR8vCIK51eFmfGYzRc5ImX3HwXMu5+KApyOhPif/hPwkusITubdc 4+iGjTeroUMvDrVbQzO2nOISZF2S2n4S3JCUtk1bBpHthqji3/wyk6QqmZ6vVA9A5KJA 7lICPCE1G0pKw8lc+JBJ4Kod1dDx9+86gniwyfUKMzsRjzitpz950F7hpsTrO9BWakpb dmeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rvKf7mX7OxE/Q4GSdpDNoPhhBgYQOM6THV107pgOjyg=; b=I9OAjuMetnggFZCm5AYZiq15v3ZijcZRZpiWzdUQV731m0qTzDmOowyPypM1+tIsWv Cj0W/98OORCj0WTeUqJ/hLYY1atfeBSjHT/I2sxBjvDoXW12DQGCzSEP5Q8a16WEZDzD 8aZrz21YTp+HS6m8MiL4E5ACO80xVh5ABECQ+CSTujxOIb2HKkty1Lji6OHSgq8fG1mA 39HJgQD7itTBQS1fm3uJ5hwb2Son/S+gdXxeubmEoDsf8ETXa97+djvOeu3d5j3LGuMd SzblVRIxk9gxCDPoIsq+gGSuP2pQ660IkfgQpr4BNoI1uSFYnp7VSoqBk6V4a/pPyd45 WWqg== X-Gm-Message-State: AIkVDXKUBA81l+2Ecf+KyTatOapc1N0LgkqoxqZBHa7whzgbgK8ldale20vmPCgd336zb2GJHLMxFsooMwpLvw== X-Received: by 10.176.91.155 with SMTP id y27mr861719uae.151.1484090582123; Tue, 10 Jan 2017 15:23:02 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.88.138 with HTTP; Tue, 10 Jan 2017 15:22:31 -0800 (PST) In-Reply-To: References: <0D275F6F-85D3-4E9D-AF89-03C91A23D5BD@gmail.com> Date: Wed, 11 Jan 2017 01:22:31 +0200 Message-ID: To: Davey Shafik Cc: Paul Jones , PHP Internals List Content-Type: multipart/alternative; boundary=f403045f8ec8f64e590545c5c307 Subject: Re: [PHP-DEV] [RFC][Discussion] ServerRequest and ServerResponse objects From: arvids.godjuks@gmail.com (Arvids Godjuks) --f403045f8ec8f64e590545c5c307 Content-Type: text/plain; charset=UTF-8 2017-01-10 22:11 GMT+02:00 Davey Shafik : > On Mon, Jan 9, 2017 at 10:43 AM, Paul Jones wrote: > > > > > > On Jan 7, 2017, at 15:41, Joe Watkins wrote: > > > > > > That doesn't sound like a positive consensus that this is a good idea, > > it is rather the opposite. > > > > Not to get into interpretations of comments, but while I agree that there > > were one or two actual negatives, they were predicated on a > > misunderstanding of the purpose of the RFC. As such I took them as > neutral, > > rather than negative. The remainder were questions or comments, and not > > negative ones. > > > > Either way, I think we can see from reactions here since then (and > > elsewhere) that there is some level of positive interest in the RFC as > > presented, as well as some healthy technical questioning. I'm happy to > hear > > both. > > > [Trying again, Sorry Paul who has likely received this three+ times nows] > > [Resent without URLs, grrr] > > Let me be absolutely clear: > > Any attempt to improve HTTP request/response handling in PHP that doesn't > take into account WebSockets or HTTP/2 Server Push is a non-starter for me. > > PSR-7 was heavily influenced by Python's WSGI spec and they are also seeing > it's inability to handle these types of interactions. As such there is a > new recommendation being proposed called ASGI: Asynchronous Server Gateway > Interface [1], that is intended to address this. > > I think it would be more beneficial for PHP the language to consider > reaching out to the Python community and seeing if it makes sense to > collaborate on this. A new ASGI SAPI would come with message > objects/interfaces (see [1]) baked in. > > If we want PHP to have a meaningful presence for the future web, we need to > move forward from our current request/response 1:1 HTTP-only model. > > So, as currently proposed, I'm -1. It doesn't move the language forward in > any meaningful way. > > - Davey > > [1] google: ASGI python, it's the first result > I would also add the support, bug and feature issues that will definitely crop up with such an interface. If there is a major bug, flaw or security issue, getting it fixed is going to be a problem, because as we know, the adoption of PHP is nowhere near instantaneous and it can be years before you get the actual fix into the servers your project/projects are running on, and you can't do anything about this. There are also questions - a 1GB upload comes in, will interface implement streams or some other way of handling that? Or there is a 200MB gallery upload of images, with how most hosts set up their memory limits, I would imagine this would just run out of memory. And all that stuff. It's a way bigger job than I think the proposing person thinks, and it needs major support from the project maintainers, because I'm 146% sure one person will not be able to do it all and maintain it for next 10 years before it becomes integral part of the core... This is something that needs to be tested and runned as a module for quite some time before it is stable enough to be in the core anyway - just see what happened to PDO - as far as I know, no one really wants to touch it, it's a mess. --f403045f8ec8f64e590545c5c307--