Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100285 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69410 invoked from network); 23 Aug 2017 04:57:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Aug 2017 04:57:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wm0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:35853] helo=mail-wm0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/DA-34801-54B0D995 for ; Wed, 23 Aug 2017 00:57:42 -0400 Received: by mail-wm0-f54.google.com with SMTP id z132so7177982wmg.1 for ; Tue, 22 Aug 2017 21:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SpkELPSWDzd8bVhyRaMp+S3dbVqsH0Qpr2fk/nXVrWw=; b=PcqzMqAsQPJC5vg8zsBCR+BtJgZOJVRbPOOXyj8XlWibtt5P58MHnPqxRVgqIyOlir VAjgZeRxoGoxQQnUJ9NIUexQDKS1z7XR/kboWhcSycb1pQcTch0RZBzP9vJRRfKNDl8C Ve4z3ny4XOoxttFiBOLt3pacxV9Vz9TQBEH0scnuHuD+caHmv8gBbvOchus/CvTGii0J 6mkTk7ViyIlrdwX7yrt5hNqVZsKE4kHYQ74Wjm3XuQpWhhMloDokRY1P+72WuCBUB/WB z4X4Bxxg3XWobC+cP7yi5YSej7aRRLS5ejWEYjtKCD8a/w9ONvwKnKYLTAlLjSNkxL2u B8Lg== 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=SpkELPSWDzd8bVhyRaMp+S3dbVqsH0Qpr2fk/nXVrWw=; b=hbCPSy7hZFFOOCyNs11A5kRSrE8UwAUaBbL63XRIcZOosvn055lovRe1Dv5u2Hy1Zw j1wgXAjw9CKurmHenbgMxJLHOspjP0xWrXn9tnrzJL4aPOt1P8VZcpUtf89Kt/6bjarC rrIGWfBCEsdLgySSqT1fdOon9e5NSvSh7/mJ2QmPkN/Iol8EkrXh8Fb7BAJ5xZz+brxP 9CHy4of0FiwJCG17/pkmRLE/ztj7cnpnMT49Yu9V6Zq5OXSQS6bWm3fpB2UlGRqFmDIz Xzl3NhgYgoH8USh+NU00hHOX0vwXrmt+BqANknFa0KUudXozzbrdWbjb2+clX3yK1/7O dRmQ== X-Gm-Message-State: AHYfb5jysAGePcJ3KDrDrRP3R1c2edb/mrV6Lix4dD6hveh2v5c3sWrp UMcO7aK6iVhercZ30HzqlJXsbw9BJf+D X-Received: by 10.28.113.205 with SMTP id d74mr873030wmi.134.1503464259459; Tue, 22 Aug 2017 21:57:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.135.154 with HTTP; Tue, 22 Aug 2017 21:57:38 -0700 (PDT) Received: by 10.223.135.154 with HTTP; Tue, 22 Aug 2017 21:57:38 -0700 (PDT) In-Reply-To: <7b50581b7b2b96920867de76f75c0dfd@bohwaz.net> References: <1e398f12adbdbed6b7caf3b0af07f284@bohwaz.net> <069c08bfe15b856007debab5d0d961be@bohwaz.net> <7b50581b7b2b96920867de76f75c0dfd@bohwaz.net> Date: Wed, 23 Aug 2017 06:57:38 +0200 Message-ID: To: "BohwaZ/PHP" Cc: PHP Internals List Content-Type: multipart/alternative; boundary="001a1147da641e219b0557648d86" Subject: Re: [PHP-DEV] Matching PDO_SQLite features with SQLite3 extension From: ocramius@gmail.com (Marco Pivetta) --001a1147da641e219b0557648d86 Content-Type: text/plain; charset="UTF-8" I suggest adding dedicated functions that given a PDO instance and the parameters you needed do what you want to do. And yes, you are adding new stuff: php-src has this widespread misunderstanding that "reproducing new lower layer behaviour in upper layers" should happen no matter what. On 23 Aug 2017 6:39 AM, "BohwaZ/PHP" wrote: > PDO is already a mess, and adding method that appear/disappear dynamically >> whether you enable an extension or not... is a horror show. >> >> From my PoV, since we (doctrine) have to abstract away from it all the >> time, we'd rather have it as tidy and well-thought-out as possible, >> especially since there already is so much damage done. >> > > Yes I agree, but it's not the point, this behaviour already exists, I'm > not introducing anything new here. > > Couldn't care less about exposed/unexposed features if the endpoints are on >> the wrong object, or cause even more weirdness to work with. It is not >> helpful: it's just more tech debt dumped on millions of consumers. >> > > I care because I need those features in my projects, and I'm not the only > one. > > But if those late-loading methods don't suit you, what do you propose > instead? > --001a1147da641e219b0557648d86--