Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81340 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55052 invoked from network); 28 Jan 2015 20:56:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2015 20:56:58 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.199 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.199 imap11-2.ox.privateemail.com Received: from [192.64.116.199] ([192.64.116.199:45682] helo=imap11-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/F1-44076-91D49C45 for ; Wed, 28 Jan 2015 15:56:58 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 220C58800D5; Wed, 28 Jan 2015 15:56:55 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap11.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap11.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yselX06Q8Yef; Wed, 28 Jan 2015 15:56:54 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 315A28800A2; Wed, 28 Jan 2015 15:56:52 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <54C94A9D.8000904@beccati.com> Date: Wed, 28 Jan 2015 20:56:50 +0000 Cc: Michael Wallner , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: <54C8D36E.7010803@php.net> <54C9338A.7020202@beccati.com> <54C9363D.6090102@php.net> <54C94A9D.8000904@beccati.com> To: Matteo Beccati X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] [VOTE] pecl_http From: ajf@ajf.me (Andrea Faulds) Hey everyone, > On 28 Jan 2015, at 20:46, Matteo Beccati wrote: >=20 > Since PSR-7 is being discussed now *and* pecl_http can't implement an = interface that still is being discussed, I would rather vote "no" now = and maybe change my mind in future if PSR-7 becomes a thing and = pecl_http follows. Or PSR-7 fails, for that matter. Related to this: is it even possible for an internal class to rely on = and formally, explicitly =E2=80=9Cimplement=E2=80=9D a userland = interface? It=E2=80=99s all very well if PHP has a built-in = implementation that follows PSR-7, but it would suck if you couldn=E2=80=99= t pass an instance of that class to a function with a (hypothetical) = psr7\HttpMessage type hint. Userland libraries don=E2=80=99t have this issue: they all just require = the PSR-7 interface package in their composer.json and all is well. -- Andrea Faulds http://ajf.me/