Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123234 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 3DB231A009C for ; Tue, 30 Apr 2024 11:08:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1714475358; bh=cEg261cugzj+RYeNtUyugtdvQtkf8ODbfL7YirnhyJA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dUZtimSh5XKOLcY6nFMnlBrTfK+KY6M+m5uWuMxpMbQkdbOCqOuHH9ZXJ+VFNVkTS bfYm/zM17rESupm46VB2aOJtKYvp0KTh5JdarieakF8SgGDTN9DTlDu//dkTlkGI8R oyBH4SwI51RJsGz6jYvciuxZDxttjQOFgsQper+esz/ELnqiJn1Zw7ZMAvpSL61Vr2 6JdtOupxUFLpuy3esYV4UaL2Irsfmcd5RoCcx0qHuW9wivjce90+9xAcP8XWyFrqL5 EKByehZwxDhURJ1ahufq6EGDtzyJxLJ859CJncwHyr3Zose+8NBMmOd8hmYBJzza0Y TWsGnRelpekPQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E7C981805A5 for ; Tue, 30 Apr 2024 11:09:15 +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,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, 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-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 ; Tue, 30 Apr 2024 11:09:15 +0000 (UTC) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-5196c755e82so6816601e87.0 for ; Tue, 30 Apr 2024 04:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714475310; x=1715080110; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cEg261cugzj+RYeNtUyugtdvQtkf8ODbfL7YirnhyJA=; b=OgDzFCSUnTvk34kJqotwffAk4KP0cu0SQ6WaCyK6vpcYwGXIGEghuG/tThU9leie3K vvkfNpnWuovAHKZJ78Otc/mUnOU/IlopBidmzd6dtMs2oJXH5PmA5uwFjvrIPJiCB24t av5Eu9JIPQyAYEQ86Ri3Qrnl21A+fWXCJNsfEVKEwifssAzCrqKu3I9IUqj/747wkBUK f6kOHrXriyaksipEHBq76oJ6DOgWDGdIfkqdtTrfOsooJeXdQJO5VFq/tRM6w3JDvFvz eVdqjEh7GP6J9ZGUfDVpM4t+YqLl8+jnpnXlnB/yyyEoJknlFKfZ1OviRflZmkPNEyIx Mwkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714475310; x=1715080110; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cEg261cugzj+RYeNtUyugtdvQtkf8ODbfL7YirnhyJA=; b=qhKMV3nMH2rqtAWdFEdYKgL3APAdeOKisqFrxho3aMzUDrnXZXMbg9rpXNMReIxx3M 4yNcaU/T94x97dS6Nko5ndFeor7u73iSyeAiNRXpWnl5CZm6oBLyIjFlFPNSV4rKhbIP PzHtcxxLImoYrij9lk2ufzFkXR3Z6d6DSv46VXxTkdf6q3EX1fkkGVQnzaEEaTKj8wwk Ggh8XCay4/sLCRFR5ALRiGhIcHS9pgTRlKub4oX64H5wev/XN4+exw9asxdiYRI0wuyl 1WRoNECIyAwkqQVr2XxlVQ/kYgqHBJaJwOEvn6QcLNKTsQqhojyARrimfTAGGhFrBONr XNVA== X-Gm-Message-State: AOJu0YwmqTjYVnVGQD3xfKoDkPrzgXQl+DzGBLN0/Z+auC2I1xf0WFfu WUk+JDWFoXBeQXmTvMjzQmu58cJXcCNMAFm5PGkhIN34YByZkFB6lAIvaCk/GA3OU6BSZyRrELi LYY6dCWlmuuQgTQfxcMJSWY9Q2lM= X-Google-Smtp-Source: AGHT+IEJ7izWsolDnFhs80ZdVqrxazBbLBTg51aF09poqtEenuDTVk3wXcnG/UKVacj2pZw4C+RTW34NYZuADBIe+TI= X-Received: by 2002:a19:ae17:0:b0:51b:6f06:92f2 with SMTP id f23-20020a19ae17000000b0051b6f0692f2mr8179160lfc.33.1714475309816; Tue, 30 Apr 2024 04:08:29 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 30 Apr 2024 14:07:53 +0300 Message-ID: Subject: Re: [PHP-DEV] PDO subclass names To: Matteo Beccati Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000d161ca06174e63fd" From: arvids.godjuks@gmail.com (Arvids Godjuks) --000000000000d161ca06174e63fd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 30 Apr 2024 at 12:07, Matteo Beccati wrote: > Hi, > > > > If MariaDB wants to maintain a specific PDO Driver they can do so > > themselves and publish it on PECL, same as how CUBRID (and others) does > > currently. > > That is true, however it's mysqlnd the part that deals with the network > protocol, which they wouldn't be able to modify from PECL. That said, > I'm not an expert on mysql/maria, but I also doubt the changes are > significant enough that they need a separate driver. > I wasn't proposing rolling a separate driver or anything like that, just an alias that would reserve a namespace for MariaDB and if there's ever a need to actually roll the driver, that alias be replaced with actual driver= . The thing is at this point MySQL and MariaDB have a different set of additional capabilities that are not compatible between the two. Doctrine, at this point, actually makes a distinction between MariaDB and MySQL - those are considered different databases. This would allow people to use MariaDB and MySQL-specific functionality by using the respective driver namespace and remove any confusion about if this works with both or only one of them. I know it seems to be out of scope, but this deals with PDO subclass names and this seems to be a thing to consider here. Sure, we can have a separate RFC about it, but I think this is the right moment to handle this question. --=20 Arv=C4=ABds Godjuks +371 26 851 664 arvids.godjuks@gmail.com Telegram: @psihius https://t.me/psihius --000000000000d161ca06174e63fd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, 30 Apr 2024 at 12:07, Matteo = Beccati <php@beccati.com> wrot= e:
Hi,


> If MariaDB wants to maintain a specific PDO Driver they can do so
> themselves and publish it on PECL, same as how CUBRID (and others) doe= s
> currently.

That is true, however it's mysqlnd the part that deals with the network=
protocol, which they wouldn't be able to modify from PECL. That said, <= br> I'm not an expert on mysql/maria, but I also doubt the changes are
significant enough that they need a separate driver.
<= br>
=C2=A0I wasn't proposing rolling a separate driver or any= thing like that, just an alias that would reserve a namespace for MariaDB a= nd if there's ever a need to actually roll the driver, that alias be re= placed with actual driver.
The thing is at this point MySQL and M= ariaDB have a different set of additional capabilities that are not compati= ble between the two. Doctrine, at this point, actually makes a distinction = between MariaDB and MySQL - those are considered different databases.
=
This would allow people to use MariaDB and MySQL-specific functionalit= y by using the respective driver namespace and remove any confusion about i= f this works with both or only one of them.

I know= it seems to be out of scope, but this deals with PDO subclass names and th= is seems to be a thing to consider here. Sure, we can have a separate RFC a= bout it, but I think this is the right moment to handle this question.



--

Arv=C4=ABds Godjuks
+371 26 851 664
Telegram: @psihius=C2=A0https://t.me/psihius
--000000000000d161ca06174e63fd--