Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:114022 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 13507 invoked from network); 11 Apr 2021 17:48:57 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 11 Apr 2021 17:48:57 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 7DA781804F3 for ; Sun, 11 Apr 2021 10:49:15 -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.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sun, 11 Apr 2021 10:49:14 -0700 (PDT) Received: from iva5-8cd627e71aff.qloud-c.yandex.net (iva5-8cd627e71aff.qloud-c.yandex.net [IPv6:2a02:6b8:c0c:7b87:0:640:8cd6:27e7]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 5DECB42000C8 for ; Sun, 11 Apr 2021 20:49:11 +0300 (MSK) Received: from iva4-b3ebd202b141.qloud-c.yandex.net (iva4-b3ebd202b141.qloud-c.yandex.net [2a02:6b8:c0c:4e8e:0:640:b3eb:d202]) by iva5-8cd627e71aff.qloud-c.yandex.net (mxback/Yandex) with ESMTP id 8aYmnYO5tp-nAISqNEe; Sun, 11 Apr 2021 20:49:11 +0300 Authentication-Results: iva5-8cd627e71aff.qloud-c.yandex.net; dkim=pass Received: by iva4-b3ebd202b141.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id oH1yCY51ge-nAKa3Dsi; Sun, 11 Apr 2021 20:49:10 +0300 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client certificate not present) Received: by mail-wm1-f48.google.com with SMTP id w186so969623wmg.3 for ; Sun, 11 Apr 2021 10:49:10 -0700 (PDT) X-Gm-Message-State: AOAM531CM1JHpHEgU92f8n0qiBlcFeH8Dab2oARpaegJet4/Mc5SeyQO V3+ln5X3Eo0+2UVlzfo8Qker7B5waZ3mntdVxlg= X-Google-Smtp-Source: ABdhPJzG1NaFXe82YqVzqlvlCxhGV6CPdftCCxfR8L93jiQJ37/GBhKLcuHEgaqdMEIHJMVTCrX8Ys8DzzdGGQFQsFo= X-Received: by 2002:a05:600c:3790:: with SMTP id o16mr23252432wmr.110.1618163349991; Sun, 11 Apr 2021 10:49:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Sun, 11 Apr 2021 10:48:59 -0700 X-Gmail-Original-Message-ID: Message-ID: To: Kamil Tekiela Cc: PHP Internals Content-Type: multipart/alternative; boundary="000000000000aa359605bfb6034e" Subject: Re: [PHP-DEV] Use MySQL syntax only for parsing MySQL statements in PDO From: morozov@tut.by (Sergei Morozov) --000000000000aa359605bfb6034e Content-Type: text/plain; charset="UTF-8" Kamil, > You are attempting to fix a small issue in another driver while the MySQL parser is already broken with similar bugs. Yes, this is what the original idea was given the existing bugs on bugs.php.net while I wasn't aware of all the other MySQL parser problems that you pointed out. > Which is kind of my point. Point taken. Matteo, This is great to see this effort happening! As I understand, you also implement an API for platform-specific parsers but via a much better extensible API. I'm curious if instead of keeping the MySQL syntax in the default parser and creating one for PostgreSQL, it would make sense to create a MySQL parser and remove the support for backslash escaping from the default one? > Perhaps we could work together and come up with an RFC? Thanks for the offer but I don't think I'll be able to prioritize this effort over my other projects. Based on the conversation above, reworking the parser the right way requires a lot of investment and frankly speaking it's not the most critical problem in the world to solve (all these bugs are edge cases). Regards, Sergei Morozov --000000000000aa359605bfb6034e--