Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123247 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 6981D1A009C for ; Wed, 1 May 2024 14:06:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1714572447; bh=JNsyZq71I24KGpAdUHfYegigWtEXRr9GoB15Ho5Sqjs=; h=Date:To:From:Cc:Subject:In-Reply-To:References:From; b=mS71Hbt04y0m2g6rVfObEjNToHCbr5DgaEMJXjgneVe71YLmQa/aPKhlgMWKQquuy gBj2ZaOOeCcJH7c3abswVv21fIfNEKx1uYqhO+b/ZtggF+LDYM8Q5+TUjs2rU3X+nK nfdqalugr4UooSbJlxgv/4c/QqGhBT+4cdT9AYmQrRIwK2743F6xcGGavSruNfHet/ FML2sksL00OqHi7XppIpAfJogEVq/PFEUZ5V3BKJsqUdV6vB0S6lzar/LECdzccCkr Ql/KJqzUg08xsriWcRmssKL+K51DctpwzQLO7RgmqB+GDaoi0DVNuX4JIZ/7/ur+59 GrWiOl2qvpEDw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EB4E8180088 for ; Wed, 1 May 2024 14:07:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-4022.proton.ch (mail-4022.proton.ch [185.70.40.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 1 May 2024 14:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gpb.moe; s=protonmail; t=1714572398; x=1714831598; bh=JNsyZq71I24KGpAdUHfYegigWtEXRr9GoB15Ho5Sqjs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=u6XWp4oN8K/WVXN0ZwVeufITULPcHrxeh2lU3gm4LLOiLOeRP+pKfP4xmp2Njpj2B MNlrk2Ci94w/R3gf76s1NR6Re1eKK1J4UwtsUKkkkJF4Pivm7hXrG6t9hSUbztiKdL QM2otcpE4KU5CKdUv4Z7udNVKsp0rm6zrsrbcCztI9I2csQlMLsd3jEAkDsstnQjpl wSOYMqOecGmzRIy9F4d5VtMzuYN1EKamjub8PPT6kQ+ahHvMWCEznE8PHMPREEwiCd Gkx05WLdOkfMCzwQoBR+4euzVeBQWwzsiTCV4wXqCpv9TAUFImyymdhe53e4Rnh0mp AcoBGTDRF0YtA== Date: Wed, 01 May 2024 14:06:33 +0000 To: Kamil Tekiela Cc: PHP internals Subject: Re: [PHP-DEV] Re: Proposal to Create a MariaDB Alias for the MySQL PDO Driver Message-ID: In-Reply-To: References: <6b2e7c73-0f21-4d3a-9db8-01184ae120fb@beccati.com> Feedback-ID: 96993444:user:proton X-Pm-Message-ID: dd1ebc369fc8d0c95e22a411ef290ad393765d49 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: internals@gpb.moe ("Gina P. Banyard") On Tuesday, 30 April 2024 at 22:33, Kamil Tekiela wr= ote: > I see absolutely no reason to do this. There is no difference between > MySQL and MariaDB in terms of PDO. Sure, the actual RDBMSs have > differences, but they play no role when it comes to PDO. > If MariaDB decides to change the protocol some day then we would need > a new driver to replace mysqlnd. Only then it would make sense to have > PDO_mariadb extension. But that is unlikely to happen any time soon. > The purpose of PDO subclasses is to offer driver specific > functionality and differentiate SQL syntax flavours. MariaDB and MySQL > use the same driver so they offer the same functionality and they use > the same SQL syntax (at least the parts that matter). And we must > remember that MariaDB is not the only MySQL-like DB out there. We are > not going to create a name alias for every possible fork of MySQL that > ever exists. It would be pointless. I agree with Kamil, MariaDB wanting to be incompatible with MySQL is their = choice. If we introduce an "alias" and the MariaDB behaviour doesn't work, then we = are on the hook to "fix" a database driver where we don't have the expertis= e. The MySQL driver is intended to only be used with a MySQL database, that it= works with MariaDB is just a consequence of them forking from MySQL. And a user that uses a driver of a different DB than the one they run shoul= d expect incompatibilities. If there is a need for a MariaDB driver, then it should live outside the ph= p-src repo, IMHO. We already have database drivers that are badly maintained because we don't= have the expertise, or only recently acquired people that want to work on = them. We removed the interbase and OCI8 extensions from php-src to PECL for this = exact reason. Thus adding, effectively, a new database driver makes no sense to me. Best regards, Gina P. Banyard