Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100274 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38032 invoked from network); 21 Aug 2017 22:02:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2017 22:02:56 -0000 Authentication-Results: pb1.pair.com header.from=adambaratz@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=adam.baratz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.170 as permitted sender) X-PHP-List-Original-Sender: adam.baratz@gmail.com X-Host-Fingerprint: 209.85.216.170 mail-qt0-f170.google.com Received: from [209.85.216.170] ([209.85.216.170:38550] helo=mail-qt0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/B3-34801-0985B995 for ; Mon, 21 Aug 2017 18:02:56 -0400 Received: by mail-qt0-f170.google.com with SMTP id 57so11590128qtu.5 for ; Mon, 21 Aug 2017 15:02:56 -0700 (PDT) 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=Ye4qZ1vuWThS67LKau2MO3JdYKkY0rBSBrRQWsDNX0I=; b=fNBGA8SNRkcmQVvkysJSiN3Dib8q8GtO9jNC8LT/pMupLjC658tX75aef85HiZd3hy FRrCHex1y+Er/1qH1RxZwlcE57LsrTEgLVQQHK4m5e+M0kPrpBACARbu5hSkCRmFIszw zydZQ7OoOP6dTd9sWV2CUFZu5mCBrcPfK3MqZ//Xi9ppOsxAURBdnzwMulHpaW2nm06X mblYcRRT7Jf7Ax/UC4cG+Hv3uwne5vAZHSqlhwCdjQg3qWFKPqzuGnJ0B6Ovhd1cJdfG GbkBYki3zTkWDGHbiho1doFvY9IXPXA0VTU+TDjmnrUupd74Y4Kmen1hICTWWVJUsEW5 9u+A== X-Gm-Message-State: AHYfb5gtsOnzkt0T7xB7ukRrOVFDVg1mxOk+aW4lj3dCa6HXW+nQP1/O fU7wGrQpE6WnyyEoF2U= X-Received: by 10.200.52.39 with SMTP id u36mr4252222qtb.275.1503352973547; Mon, 21 Aug 2017 15:02:53 -0700 (PDT) Received: from mail-qt0-f175.google.com (mail-qt0-f175.google.com. [209.85.216.175]) by smtp.gmail.com with ESMTPSA id r18sm9705957qkr.29.2017.08.21.15.02.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 15:02:53 -0700 (PDT) Received: by mail-qt0-f175.google.com with SMTP id d15so18860461qta.0 for ; Mon, 21 Aug 2017 15:02:53 -0700 (PDT) X-Received: by 10.200.22.47 with SMTP id p44mr7080425qtj.97.1503352973059; Mon, 21 Aug 2017 15:02:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.140.199 with HTTP; Mon, 21 Aug 2017 15:02:52 -0700 (PDT) In-Reply-To: <069c08bfe15b856007debab5d0d961be@bohwaz.net> References: <1e398f12adbdbed6b7caf3b0af07f284@bohwaz.net> <069c08bfe15b856007debab5d0d961be@bohwaz.net> Date: Mon, 21 Aug 2017 18:02:52 -0400 X-Gmail-Original-Message-ID: Message-ID: To: "BohwaZ/PHP" Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="f403045d7222ee6d2a05574aa384" Subject: Re: [PHP-DEV] Matching PDO_SQLite features with SQLite3 extension From: adambaratz@php.net (Adam Baratz) --f403045d7222ee6d2a05574aa384 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 21, 2017 at 5:54 PM, BohwaZ/PHP wrote: > Le 22/08/2017 07:55, Adam Baratz a =C3=A9crit : > >> A new method is an API change to me, so an RFC would be warranted. I'm >> reluctant to add driver-specific methods, since that seems opposed to >> PDO's >> driver-agnostic API, but that's not to say we couldn't hash something ou= t. >> > > Do we need a RFC every time we patch for a missing method ? > > Btw there's already sqliteCreateFunction, sqliteCreateAggregate and so on= , > so it's pretty much just the continuation of that logic, even though I > don't really like it either (especially as lazy-loading by extending PDO > makes it so that the methods are not accessible until the connection has > been established, which is a weird behaviour imho). I see. Didn't realize it was an existing pattern. Not going to say I love it, but that's not a reason to break with it now. We could maybe talk separately about better ways to do this sort of thing, to avoid the situation you describe, but I don't need to derail this conversation any further. Thanks for taking the time to get parity between the extensions. Adam --f403045d7222ee6d2a05574aa384--