Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123243 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 846831A009C for ; Tue, 30 Apr 2024 21:19:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1714512034; bh=gCuNxDFPEXoVd2kcytCddsAJbQfVPHEJDMRrnzVnick=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=AfdzeGA8mqDxkFWv9WgYGTF1rnVG8Zr2tsPXXJL9NXZA5aRycur8XkKQ0GB8I2QHN ineDhrZKwy+sAEbat5/o7IalBZSSRnHDg1Yx5G2eY9CUfUpeZ/wPl2+bmNAiYxoZ/U 7G2W2/H8lO56ap4wTVTyvfhkD6/N4JG3wfxfBKLgYwSbCIMo9RWg4j44r8sFf8bopE BO4WlqoSqUsjNOBNFIfqHpCPaMJkwXHETK9bjp2kUeDp9c61bp7T1QbRcXJg2obOvV r72fcQcNG/A9SzqZDGFdpuDkIEmZytHRnsnfmvyPH58ryUB01rWjGIIV/ez739s4YG DQRhcTlVp4wvA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 56EF9180082 for ; Tue, 30 Apr 2024 21:20:32 +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-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 21:20:31 +0000 (UTC) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-41b5dd5af48so43740835e9.0 for ; Tue, 30 Apr 2024 14:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714511986; x=1715116786; 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=gCuNxDFPEXoVd2kcytCddsAJbQfVPHEJDMRrnzVnick=; b=gWrwPQsPHTklfG9Lr/AI9QQgAauTFRX7sZYlkGx1agOKi45FttxAMwNht6us5SW2oA hgBBE0dXjUwuqWq5/GX/a8KN5s8oQbUY9FemUOIzW1h9HVaIi9PGkJlzoBiTYuDeRFYd FBuHyc1b2iILtdigRH1i0ybh4Gy/Hm/blItoqdobpes8H81MvHHxT7xbXUd2ueQJrW3a vzVNTJJ9ppY0S9a100zZ0S0hPdfpanJIk5ar7dsKW5s1fdvdRoSQCl5HYSuZz5XM4iVY bVvHQti4CwyIzpiIN0iP9PICxTL+g1MUTiB0EPhMfB9APbOz/Gt5KkoFXIIG0YnepNNT Pdjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714511986; x=1715116786; 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=gCuNxDFPEXoVd2kcytCddsAJbQfVPHEJDMRrnzVnick=; b=IR+Maw7ygSnmqIZT1v0lNr/dLPmo8n5A30ZujYqTRS5HS9t77MAmmpdk5N+lOjj2vA X1eXpLntnrsjHPsmnctB6y9b/RFJtj9R6miALNOApOu3dWOufnOaMnJgHfA9mNZc92tI T1O9Yeys+Dd61vPJiUroJuqFwF968d4J56zZbdDfkG3HWBW/XDtnIMO3ET7rt0kj+4Yr NzAyR7g9rNH8DAiKU+rMIvIzonE+CTL2ezMT3Bds0lhvR4nSYcnYs6CBXHgV6fr//LEy GshsuUrCESQPP43BRWTMNhLcOU3QbYx+3TI5jV5YX8iO9/a+fp80rn1DOHBWbBx1TTe+ TzCw== X-Forwarded-Encrypted: i=1; AJvYcCVEdt+VePVFxWI8LkuaYdvWwv0KHv53R/CzemnhPbn/LQKEvSvSkLR244vziNljNG3K9ASEKCydOYgp6Df/x+qrtVfcI1aX5Q== X-Gm-Message-State: AOJu0YwFZ7xYCukDuX9nVKYkhfaNYW5VcN7lAg7eV10jx+0LF34K7kaj lwF1xcxXHZ14uaO4aSoj9Ohh57jE4C4RXFKHVt9EQq4eUpSICmJh/x6Uc+OnGwKtUjjYIcVCnD9 1ftHHdY6t+o0IMW7Q0tM/Ev8wBgAFSDCn X-Google-Smtp-Source: AGHT+IEC2qCeATEwcuL0XxMDEN+M1FFvIsuk17WLz8YLZPsJ5qGp9A9nciKs1UqfoJL466voRHsETEhiZeZvxPSxNds= X-Received: by 2002:a05:600c:19d3:b0:41d:7c48:5555 with SMTP id u19-20020a05600c19d300b0041d7c485555mr486076wmq.20.1714511986088; Tue, 30 Apr 2024 14:19:46 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <6b2e7c73-0f21-4d3a-9db8-01184ae120fb@beccati.com> In-Reply-To: <6b2e7c73-0f21-4d3a-9db8-01184ae120fb@beccati.com> Date: Wed, 1 May 2024 00:19:09 +0300 Message-ID: Subject: [PHP-DEV] Re: Proposal to Create a MariaDB Alias for the MySQL PDO Driver To: Matteo Beccati Cc: Saki Takamachi , PHP internals Content-Type: multipart/alternative; boundary="000000000000e4e638061756eddd" From: arvids.godjuks@gmail.com (Arvids Godjuks) --000000000000e4e638061756eddd Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 30 Apr 2024 at 21:32, Matteo Beccati wrote: > Hi Arvids, > > > > It's not clear to me what divergences need to be addressed at the PDO > level at this point. Could you please shed some light? > > Is it just identification? If so, I think the best place to do it is > some user-land configuration. > I'm no expert in the matter, but here's some stuff I found: https://aws.amazon.com/compare/the-difference-between-mariadb-vs-mysql/#sum= mary-of-differences-mysql-mariadb https://www.cloudways.com/blog/mariadb-vs-mysql/#mariadb-vs-mysql One thing that comes to mind that I run into is that both have a different set of functions they support to work with JSON objects and they store them differently. As time goes on, there are more and more database specific differences. Again, this is about giving people ability to develop stuff based on PDO driver subclass, clearly delineating what is supported for what database. You will not have to look at the code and try to figure out if this works in MySQL or MariaDB or both - you will be able to see that it uses either MySQL driver or MariaDB driver. As far as PDO development goes, it's more of an organisational change. Larry has given a pretty clear explanation why it's good to have this. --=20 Arv=C4=ABds Godjuks +371 26 851 664 arvids.godjuks@gmail.com Telegram: @psihius https://t.me/psihius --000000000000e4e638061756eddd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Tue, 30 Apr 2024 at 21:32, Matteo = Beccati <php@beccati.com> wrot= e:
Hi Arvids,
<snip>

It's not clear to me what divergences need to be addressed at the PDO <= br> level at this point. Could you please shed some light?

Is it just identification? If so, I think the best place to do it is
some user-land configuration.


=
One thing that comes to mind that I run into is that both have a= different set of functions they support to work with JSON objects=C2=A0and= they store them differently.
As time goes on, there are more and= more database specific differences.=C2=A0
Again, this is about g= iving people ability to develop stuff based on PDO driver subclass, clearly= delineating=C2=A0what is supported for what database. You will not have to= look at the code and try to figure out if this works in MySQL or MariaDB o= r both - you will be able to see that it uses either MySQL driver or MariaD= B driver.
As far as PDO development goes, it's more of an org= anisational change. Larry has given a pretty clear explanation why it's= good to have this.
-- <= br>

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