Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78523 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15484 invoked from network); 31 Oct 2014 17:27:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Oct 2014 17:27:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.49 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 74.125.82.49 mail-wg0-f49.google.com Received: from [74.125.82.49] ([74.125.82.49:51997] helo=mail-wg0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/07-15608-F86C3545 for ; Fri, 31 Oct 2014 12:27:43 -0500 Received: by mail-wg0-f49.google.com with SMTP id x13so6996889wgg.36 for ; Fri, 31 Oct 2014 10:27:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xYDwUD0onEYlMghh2xXRvSzWHqbBi0tMEYWsnDVqYdM=; b=j20/Zmiz8bG+LbbfQhE+OEzAU1G+eidcxtoXjXQ8StTmAWhUfgj+nWvbrlPZHJsu2I BISll/eLVijmK8vUMQ1oAXJPR552s5dsb/zKxg5CtQUQYBs9U3FztaM0GzDcE3fdwsNJ xsvSFB6HIZ5do1sWLj9385fh+uemMq3bum0zjW1HgFv3KrkR/CHDe/Sjl8UoRgYU/OVj 6j3GKR4aQQmxpvExD1H19/HzweP+T53cd//yz9kB84mEkiTYZGsJG5EjM0j1YiMH5nkb F0rCdGw0VEnyzHImQ4dtzKqO5utJgbpJhrbTWxvJdaJswQuNzJHpBnqJoyuSExX6EddG r/Mw== MIME-Version: 1.0 X-Received: by 10.180.11.227 with SMTP id t3mr5386446wib.45.1414776460601; Fri, 31 Oct 2014 10:27:40 -0700 (PDT) Received: by 10.216.123.4 with HTTP; Fri, 31 Oct 2014 10:27:40 -0700 (PDT) In-Reply-To: <5453C250.8090803@gmail.com> References: <5452B87B.5040009@garfieldtech.com> <0B797CE3-7AFA-4330-9A98-D3CAFC6D6072@ajf.me> <5453B114.6050400@gmail.com> <5453C250.8090803@gmail.com> Date: Fri, 31 Oct 2014 13:27:40 -0400 Message-ID: To: Rowan Collins Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c2400c5ef06f0506bb5023 Subject: Re: [PHP-DEV] New Standardized HTTP Interface From: theanomaly.is@gmail.com (Sherif Ramadan) --001a11c2400c5ef06f0506bb5023 Content-Type: text/plain; charset=UTF-8 On Fri, Oct 31, 2014 at 1:09 PM, Rowan Collins wrote: > > 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? > It wouldn't. You would need to extend the base class, since it already implements the necessary interface. PHP would simply call on the last subtype of HttpRequest during the request init phase. Of course, this is an implementation detail as of now. There could certainly be other/better ways to accomplish this. I just want to keep it as simple as possible for now without introducing more configuration nightmares that people often complain about. I really don't like the idea of adding yet another INI directive to control this behavior (making it harder to port). What do you propose? --001a11c2400c5ef06f0506bb5023--