Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78482 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99272 invoked from network); 30 Oct 2014 19:15:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Oct 2014 19:15:06 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.179 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.179 mail-wi0-f179.google.com Received: from [209.85.212.179] ([209.85.212.179:46231] helo=mail-wi0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/CC-33916-83E82545 for ; Thu, 30 Oct 2014 14:15:05 -0500 Received: by mail-wi0-f179.google.com with SMTP id h11so8318392wiw.6 for ; Thu, 30 Oct 2014 12:15:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=EHvrhv7kK9vgE4u/5NLRwAU67ilNfnLI37MnYk9DNgw=; b=ECOuHayDl9peiIJweJFUWfGk72JX3vWkQMHi9bN4HubFSuhHLE0DGDnngQDjxE22j/ T5b2ZIggAQzYxNTa49lyeFwTz/OJCmROZ8h9CBaYbbaevnIb4rbycr28ITFMWwkKwmdZ 3g28IrhjqCBmZ+Bs0wQrfM6aPYcHMIqL41Vsz42c+qf6BmDukGj6Q5uP6h76Amg3EDCJ OKvEm45OWbr+1qUvrSX1CwBNy2qbSPqj5BjKCQFFU89O5vC7zkrivlsuwKzbCfMu8uBr jbuDo57am4lxGdyxugxiXoffqgp29YKLbK1PA7Lq5jffEUPgbnWx4b62bTv6KKu0lRBE 0Rpw== X-Received: by 10.194.81.70 with SMTP id y6mr5110048wjx.113.1414696501430; Thu, 30 Oct 2014 12:15:01 -0700 (PDT) Received: from [192.168.0.177] ([62.189.198.114]) by mx.google.com with ESMTPSA id iz14sm18784940wic.23.2014.10.30.12.15.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Oct 2014 12:15:00 -0700 (PDT) Message-ID: <54528E33.2040909@gmail.com> Date: Thu, 30 Oct 2014 19:14:59 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] New Standardized HTTP Interface From: rowan.collins@gmail.com (Rowan Collins) Florian Margaine wrote on 30/10/2014 18:30: > Hi, > > On Thu, Oct 30, 2014 at 7:23 PM, Sherif Ramadan > wrote: > >> Since it's an interface, it only dictates the facilitation of PHP's >> built-in functionality and the user's desired implementation, but no the >> implementation itself. > > I find this very... useless. Sure, interfaces are not useless. But I don't > think php-src is there to dictate what userland code should look like. It > should provide *implementations*, not interfaces. Agreed, I still don't understand the purpose of SplObserver and SplSubject, for instance. To be fair, it's not clear from this early stage whether the RFC is going to define interfaces with a special relationship to core, more like Countable or Iterable. > The other thing I don't like in your RFC is the removal of superglobals. > Sure, they're not the best interface out there, but breaking *every single* > codebase out there is not the way to go. Especially if we don't want a > perl6/python3-like failure to adoption. Yes, this; 1000 times this! I will lay you a bet that if the RFC reaches a vote with the intention to remove superglobals in tact, it will not pass. If that is removed and it provides a useful alternative to superglobals, that allows things not currently possible (e.g. callback request-response patterns, rather than the current one-process-per-thread CGI-style model), then it might be useful. If all you're after is standardised handling in userland, then this is better addressed to PHP-FIG to publish an advisory set of interfaces that major frameworks can transition to from whatever handling they have currently. -- Rowan Collins [IMSoP]