Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100135 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2949 invoked from network); 31 Jul 2017 12:09:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2017 12:09:50 -0000 Authentication-Results: pb1.pair.com header.from=newaltgroup@bk.ru; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=newaltgroup@bk.ru; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain bk.ru designates 94.100.177.95 as permitted sender) X-PHP-List-Original-Sender: newaltgroup@bk.ru X-Host-Fingerprint: 94.100.177.95 smtp35.i.mail.ru Received: from [94.100.177.95] ([94.100.177.95:46800] helo=smtp35.i.mail.ru) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/5C-07025-6D91F795 for ; Mon, 31 Jul 2017 07:51:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bk.ru; s=mail; h=References:To:Cc:In-Reply-To:Date:Subject:Mime-Version:Content-Type:Message-Id:From; bh=hOj3zv23Kf8hRGNVPu2MLP0v+vxe//MRd41MURQgbp8=; b=Bzj66JK/PKmFgkopuCaYGkt7bwks963dZkyiuneI2gbPApczTy70Dx7Xce0Ibvwu1CtJdl3WMiVaYzsjxdaWrw1fuixjMV7k6j/wfWIa5GOXcsvWmjOIJfFVO6EHznGvpZGyJgE73vEYheokDX6ugeaztnAJbMc8Y3G4Y9e9fgg=; Received: by smtp35.i.mail.ru with esmtpa (envelope-from ) id 1dc9Eh-0004Ag-T1; Mon, 31 Jul 2017 14:51:48 +0300 Message-ID: Content-Type: multipart/alternative; boundary="Apple-Mail=_4F603A87-6D9E-4519-AB00-18D3AAD22700" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Date: Mon, 31 Jul 2017 14:51:44 +0300 In-Reply-To: Cc: "internals@lists.php.net" To: Dan Ackroyd References: <1907EFF3-ED77-4F5C-85AA-CDFE323369C5@bk.ru> <880CDC06-17D6-4E40-8A48-F2E1CB405667@bk.ru> X-Mailer: Apple Mail (2.3273) Authentication-Results: smtp35.i.mail.ru; auth=pass smtp.auth=newaltgroup@bk.ru smtp.mailfrom=newaltgroup@bk.ru X-7FA49CB5: 0D63561A33F958A5C086C2B0CC23214B39A08CA622729573CB97F80F7E5E85E6725E5C173C3A84C30B8B320EE581A760461F25A15B8C0DAB0B02670E5FEECA50C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F05F538519369F3743B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: 5359E0D685F10627A37960CE499176818DC07524ED775333C008611DD6CACC3D0B1C2223D27494CB18C1F6AB3FBD83F13DDE9B364B0DF289B1C9E140B68917A5027D9DD7AE851095AE208404248635DF X-Mras: OK Subject: Re: [PHP-DEV] [Request][Discussion] Introduce interfaces PDOInterface and PDOStatementInterface From: newaltgroup@bk.ru (Andrew Nester) --Apple-Mail=_4F603A87-6D9E-4519-AB00-18D3AAD22700 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 31, 2017, at 2:17 PM, Dan Ackroyd = wrote: >=20 > On 31 July 2017 at 08:21, Andrew Nester wrote: >>=20 >> when we are using persistent PDO we can=E2=80=99t use = PDO::ATTR_STATEMENT_CLASS and >> return our custom PDOStatement class >>=20 >> But just implementing PDOInterface and PDOStatementInterface will = allow us to implement >> this and have proper type hints in userland code. >=20 > Are you sure having interfaces would change this? >=20 > I would assume you can't use PDO::ATTR_STATEMENT_CLASS with persistent > PDO due to a limitation of the implementation internal to PDO, rather > than anything to do with what sub-classes what. >=20 > Could you post a working example of being able to set > PDO::ATTR_STATEMENT_CLASS with persistent PDO? >=20 > cheers > Dan Ouch, I=E2=80=99m sorry, Dan, for `top` posting instead of `bottom` one= --Apple-Mail=_4F603A87-6D9E-4519-AB00-18D3AAD22700--