Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97731 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27201 invoked from network); 12 Jan 2017 20:52:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jan 2017 20:52:28 -0000 Authentication-Results: pb1.pair.com header.from=pmjones88@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pmjones88@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.174 as permitted sender) X-PHP-List-Original-Sender: pmjones88@gmail.com X-Host-Fingerprint: 209.85.223.174 mail-io0-f174.google.com Received: from [209.85.223.174] ([209.85.223.174:32989] helo=mail-io0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 52/A9-50165-A8CE7785 for ; Thu, 12 Jan 2017 15:52:27 -0500 Received: by mail-io0-f174.google.com with SMTP id v96so28460985ioi.0 for ; Thu, 12 Jan 2017 12:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=AcHjRuqoIBvLK+sz35ET5F/r9KiVMDXWlwm6ytI0RVM=; b=BAuJv6mf8XYXYxqzmoZVLs8pmDcp+C1UfD5Z+/x8ly/lGa+jwBzIaI+3WK3LYVXQeo 03LF+IVU4md5uD5v1Ly2zTK7c9fFLjYD+ELEiCFWvhTgKY5wlAenw/grIdQgdZVLA5eM u6FXhMnBkIOjZYmam/KK6elyxak/4P8/Ozlq+jRSjTjzfskTAMdZQWWUFvHoMqH75J92 pXNkqTJXL5LydfP1zPVq0FraXFIlaKKyaER6GRlZdCo7NZn0O/xYKloZbM8MisFD801X vkkv6jBYMqPpJBJfRX6WdcZzjp9lH7En1iEKo+vUe+28zkWD8Rfw7OhG0ax+AGnks4yY rfBA== 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=AcHjRuqoIBvLK+sz35ET5F/r9KiVMDXWlwm6ytI0RVM=; b=V8bOcEmxzhYWDt0jV7rEfkVfI+SKFENWnoTBQJl3p6xboi3W3ayYJEsGGnpfr9ppql x4BOHP1g9r62GFc4D/Ek/NbZf9Jpnq4SZGAr2s0WZIa163oT1gL3tlBBZpeiOO+mpK7S fFZCmeWu6/+5nqwmLz6sBQHvlHxUrLKtnAdE6IYaIeXXB+FsIJ18rUKss7AIiUobN0wJ Hth4XTh2QCpDxkj0NvZFSFkOhvPdV5LUcgr5kN0PhuJQRVJCU+sDb38mlGywdp8fW2Sw 35D0eNZSR9s9mPuMj5PFJ8nzbCXS9rDNuOt2dgWxtpeLWMkFdWzBOdNr/CpKNj1JoqgX AQcQ== X-Gm-Message-State: AIkVDXKZfJqrPhdo23fNFqXCOzm+vG28d91H5lF9vgAR1CksI5y17ikZd6w6IoVVfuf+9g== X-Received: by 10.107.7.168 with SMTP id g40mr15642011ioi.92.1484254344083; Thu, 12 Jan 2017 12:52:24 -0800 (PST) Received: from [192.168.1.69] (108-236-186-227.lightspeed.nsvltn.sbcglobal.net. [108.236.186.227]) by smtp.gmail.com with ESMTPSA id c21sm5380600iod.38.2017.01.12.12.52.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 12:52:23 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) In-Reply-To: Date: Thu, 12 Jan 2017 14:52:23 -0600 Cc: PHP Internals List Content-Transfer-Encoding: quoted-printable Message-ID: <254761B4-6B6B-4306-8CEE-286E133E3A06@gmail.com> References: <0D275F6F-85D3-4E9D-AF89-03C91A23D5BD@gmail.com> To: Arvids Godjuks X-Mailer: Apple Mail (2.3259) Subject: Re: [PHP-DEV] [RFC][Discussion] ServerRequest and ServerResponse objects From: pmjones88@gmail.com (Paul Jones) Hi Arvids, > On Jan 10, 2017, at 17:22, Arvids Godjuks = wrote: >=20 > 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. (/me nods) That particular problem is not specific to this RFC, though. = It's true for anything that gets into PHP. > 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. Interesting -- what happens *now* without the ServerRequest RFC? If a = 1GB upload comes in (or a 200MB gallery upload of images), then it gets = dealt with under the RFC in exactly the same with PHP deals with it = right now. That is: probably by attempting to store the uploads on disk, = then exposing the file information via $_FILES. > 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... It might well be a way bigger job than John & I think. However, I do = have to point out that the vast majority of the functionality is pretty = straightforward, and not terribly complex. It's certainly not at the = PDO, XML, Filter, etc. level of intricacy. > 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. I can't speak to PDO, but I can say that APIs very similar to the one = proposed in the RFC have been around for a long time, implemented by = many different developers in many different systems. This RFC represents = a summation and condensation of those behaviors. --=20 Paul M. Jones pmjones88@gmail.com http://paul-m-jones.com Modernizing Legacy Applications in PHP https://leanpub.com/mlaphp Solving the N+1 Problem in PHP https://leanpub.com/sn1php