Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100136 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3594 invoked from network); 31 Jul 2017 12:10:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jul 2017 12:10:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 74.125.83.51 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 74.125.83.51 mail-pg0-f51.google.com Received: from [74.125.83.51] ([74.125.83.51:36673] helo=mail-pg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AB/5C-07025-A8B1F795 for ; Mon, 31 Jul 2017 07:59:08 -0400 Received: by mail-pg0-f51.google.com with SMTP id 125so137465675pgi.3 for ; Mon, 31 Jul 2017 04:59:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zTCwaYo5kbswm1h0mzjPHm9WrY9Jcc4GW9kxTvPSNHQ=; b=S9xhb/XC35PgbXwWeqSidcEPzlMVLqHqSwj9zcnAul8lZF4byWxiCSItpzpYsECUKy IWq9iULxPQWKdmKijs4/nkokFzR8rrBABuEfL+EwAg4CbTI8teDFThmwvJPrRF1OqVxa 2CK6d5cA/fOxndVbH/YRADVaW/vPuN4HRh/tnrxX2Jd5FEIjnheylVwPS68t6ZWYoWYH 8iEb6mzTl7Kkb8QJtcflrvyI+jvD+YWWTrBBXxA3XvD588YE3HaqpslmNd9cJ7dMaVoK rJ6tNZnDBtFrV1K4YxlJnYQRhbWgY8Nf+UUdCoZ1p97uuAsPMAhVbNG9c6AG2nJ5eI07 pDJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zTCwaYo5kbswm1h0mzjPHm9WrY9Jcc4GW9kxTvPSNHQ=; b=Zkp/cGPyRof2eqOnwqchhEkFYmRD1W41ul21Ic7E893nyImwonMseMEdd5qqR5jnkH ZEPDGaerKLBeFI22HQT3VGDLpVAdwju1Gn0uMWMnzP7PAPQf/1nCZK5Hz8OWyTDcCH6C sfUBnVGrj42ZVoUGwc1gU0AVn2bJ+EN/sKr25aNN3tvtGLE+85EekCxX7CHWatU7N6r9 +JF7ah/G7Z9SGT21KQ43z0rZz0rdm3Ig3G8DtjkpDV7R++K8kuqRtHOP6ayfmnmWWtQn nSTYzu1mdTQG8kp1G11sgpcaPBUdUI0YRGc/yjxqBgK8XOUQEgF3Ie3t/U3Tdj7O+wQw m56Q== X-Gm-Message-State: AIVw112EaAoJXt1dGFFCZJ1buCKVH2vIDXpDIgXiQhWexQlSzvl35TiP JgDhlWfAM7WDAIbQRlxF79sXRf2v1L4k X-Received: by 10.84.210.1 with SMTP id z1mr16901800plh.125.1501502343311; Mon, 31 Jul 2017 04:59:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.180.133 with HTTP; Mon, 31 Jul 2017 04:59:02 -0700 (PDT) X-Originating-IP: [81.143.203.71] In-Reply-To: <2A653728-97CA-4AA5-BA30-5BF26FABBC2A@bk.ru> References: <1907EFF3-ED77-4F5C-85AA-CDFE323369C5@bk.ru> <880CDC06-17D6-4E40-8A48-F2E1CB405667@bk.ru> <2A653728-97CA-4AA5-BA30-5BF26FABBC2A@bk.ru> Date: Mon, 31 Jul 2017 12:59:02 +0100 Message-ID: To: Andrew Nester Cc: "internals@lists.php.net" Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [Request][Discussion] Introduce interfaces PDOInterface and PDOStatementInterface From: danack@basereality.com (Dan Ackroyd) On 31 July 2017 at 12:49, Andrew Nester wrote: > > To make it possible to have persistent PDO with custom PDOStatement you > should have: > > 1) custom `CustomPDO implements PDOInterface` which will be somewhat proxy to PDO instance > 2) custom `CustomPDOStatement implements PDOStatementInterface`... "I think you should be more explicit here between steps one and two. http://www.sciencecartoonsplus.com/pages/gallery.php I'm not saying that's not going to work......I'm saying you should try to make a working example, to show that it works. That PDO with persistent connections doesn't support ATTR_STATEMENT_CLASS hints that it is doing some magic internally. Working around that magic in userland, while preserving the persistent connection functionality might be 'non-trivial'. Actually, there should be tests for that functionality as part of the PR, probably. cheers Dan