Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118090 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46291 invoked from network); 24 Jun 2022 14:33:43 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Jun 2022 14:33:43 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DD3D1180505 for ; Fri, 24 Jun 2022 09:23:45 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 24 Jun 2022 09:23:45 -0700 (PDT) Received: by mail-pj1-f52.google.com with SMTP id l2so2071944pjf.1 for ; Fri, 24 Jun 2022 09:23:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=0rQQtWThbpFaK3svjQHHkqnpvNTcvKWwUE04RIjLlFc=; b=ewagza6+nSkszzMETICMto/AFctbQbZYXAugF/TuYW8X4NEi40V3LHgtfSMjanM8Vk r+HJhgbaELGtMFTpjW9vxBWwTTk8+hQbs3q6pEnJb6VxkUMF2Eilhz1dpc+RV+umr8D1 ZeW/olxly0qGEP9QTIo8/ETZJUS/O4G+MJM9HyxxxS271BGAP+msHe48R1Q0k4LJYKZd 89Ugg/rbN0lr5v1txY31eVZQWjCf9kIzNbia4R+Eif1aJIL6q1rOYy8m6NA9Eo3vWIiO TK9e5x1H09h9eJhyVpEzjgQqiirHCQzKLyNKnjSdohPCU/GkwCNKhsRAHK4qw1ww7jMc 8WeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=0rQQtWThbpFaK3svjQHHkqnpvNTcvKWwUE04RIjLlFc=; b=snJkP5vMPRwKxIbbXr8B7JeVdMB60kcbC5zhWYzYpU/ZSVrIllfO/mf+yCxs0sBoG+ GHl0Tn0hMejdFXWWp5f+qIv9e20pWeBVyP5jgghLhSPpiU/2sDXiIbaG5rD7aKdDef8V XlLhn2IUWyvP5TqOm629BGcLSJH8ZwG2ZUaaMcalvSMQBEi1r006YRzRPHaVHUCVfD7y miRBVGmn4VS2fZ83y2rHTuEFZoRpfw1IQFagbAqAG5ViCgPpcvlEBR2F/QDAgWTx+tdx ntztI2B6XfUwI58EWTzySjCgBuzz14KAYsum8XLQUc7Oqxj8/GN/rTXnlVtlv3PkDrN2 qAgw== X-Gm-Message-State: AJIora/n9sM6G6AHGoMTqjpfWJecxb5HE4mZSt4KcSMSUtWB2RBTlQ3W 7ySWnsozD3ybSQUpAOxkC2EDRI5SELeogbZddC37sKmcHJI= X-Google-Smtp-Source: AGRyM1tbKr95kVreOWAMLnW1j8CIW/+l8tlmq1I4aszHVkAmXKmVYLrG+v+k17XAntj//okNwTrwzdJOMDLr7M99Jsw= X-Received: by 2002:a17:902:d588:b0:16a:4ca6:3a4b with SMTP id k8-20020a170902d58800b0016a4ca63a4bmr12828730plh.110.1656087824456; Fri, 24 Jun 2022 09:23:44 -0700 (PDT) MIME-Version: 1.0 References: <62b1d83c.1c69fb81.3d597.8aa9SMTPIN_ADDED_MISSING@mx.google.com> In-Reply-To: Date: Fri, 24 Jun 2022 17:23:32 +0100 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="0000000000007e5f6c05e233fe3b" Subject: Re: [PHP-DEV] Re: [RFC] [Under Discussion] PDO driver specific sub-classes From: rowan.collins@gmail.com (Rowan Tommins) --0000000000007e5f6c05e233fe3b Content-Type: text/plain; charset="UTF-8" On Fri, 24 Jun 2022 at 16:38, Dan Ackroyd wrote: > YAGNI, and I'm lazy. But mostly, I don't think adding them now > actually helps achieve anything. > Fair enough, but as a minimum there should be an internal API for registering a sub-class, without any modification to ext/pdo. For instance, it should be possible to modify https://github.com/microsoft/msphpsql to define a PDOSqlServer class and have it returned by PDO::connect when a relevant DSN is provided. It looks like the current PR implements everything directly in ext/pdo, which feels like a broken abstraction; the SQLite-specific functionality should all live in ext/pdo_sqlite. Regards, -- Rowan Tommins [IMSoP] --0000000000007e5f6c05e233fe3b--