Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78519 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4615 invoked from network); 31 Oct 2014 17:09:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2014 17:09:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:33088] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/74-15608-552C3545 for ; Fri, 31 Oct 2014 12:09:42 -0500 Received: by mail-wi0-f180.google.com with SMTP id hi2so1866546wib.7 for ; Fri, 31 Oct 2014 10:09:38 -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; bh=nqdOLc+bm/BR9bWFLdbAWrrwJQxy2c8gd2SN5hzaVCs=; b=qRhgOZ6ftctG0oY/J/UQDxdFEg8zU78dF7C/M1LQvs1Ja9EjsTWJHm82SUswcndV90 oA2vNLgiqdIWWlD8rYokUi/WtW6j4XshkjXoUgj/Y/2o3sywpIOtjbtrPWUJa6Vn4au7 vrAZU4zRqIaSjMyJhjqCZ9UXmR4Y+O1LMl34k6FXQ4KMzN8gzy6Nab1g64KZpYoKNk4C 5E9s0z6F7DKIW0SKDbz3aAHQwww2VYx7xfQ18MY6KupH65ucp6QqtqWkJe2ViEH8c5N+ ziTXfPLAXffh6lpaI1eeD9mCzWv6lNzuuSs5ImMmDhgRLS0NfJqLU+syiIb3PhAF5MPq bX/w== X-Received: by 10.194.93.194 with SMTP id cw2mr4385572wjb.112.1414775378825; Fri, 31 Oct 2014 10:09:38 -0700 (PDT) Received: from [192.168.0.177] ([62.189.198.114]) by mx.google.com with ESMTPSA id rx8sm8184329wjb.30.2014.10.31.10.09.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Oct 2014 10:09:38 -0700 (PDT) Message-ID: <5453C250.8090803@gmail.com> Date: Fri, 31 Oct 2014 17:09:36 +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: PHP Internals References: <5452B87B.5040009@garfieldtech.com> <0B797CE3-7AFA-4330-9A98-D3CAFC6D6072@ajf.me> <5453B114.6050400@gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------010303080708080205050208" Subject: Re: [PHP-DEV] New Standardized HTTP Interface From: rowan.collins@gmail.com (Rowan Collins) --------------010303080708080205050208 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sherif Ramadan wrote on 31/10/2014 16:07: > > > On Fri, Oct 31, 2014 at 11:56 AM, Rowan Collins > > wrote: > > > I think the piece that's missing is how exactly these interfaces > would interact with core, or rather with the SAPIs which handle > the actual transfer of HTTP requests and responses. > > > PHP would have an HttpRequest class, as noted in the updated RFC, > which implements the HttpMessageReceive interface. The HttpRequest > class's default behavior would be to just populate the superglobals > (i.e. having the same net-effect as the current behavior). > > If a user wanted to override that default behavior they would just > extend HttpRequest and implement the functions/methods they wanted to > override. Let me repeat my question: Say I write a class "AwesomeHTTPReceive implements HttpMessageReceive", what do I then do with this class in order for it to perform any actions? How does PHP know that my class is the one it should populate, or when that population should happen? --------------010303080708080205050208--