Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123279 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 576241A009C for ; Thu, 9 May 2024 09:26:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1715246861; bh=kbeTHzjuQ8e5JOCTxMpNuGFxP2hwaJqurGygln45088=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=bz3C+yiTMFS23S9Oe51a2CfPpC70P/XKdF8z4E6FlNXDeE3Vr8G0Y/+038ZGAsi6M mL5UAKOQfcV2LBmSdRODF86MY/jxDA9moUgzPEww/HVLLOs4Af0PCtDYw9M8DvSQBb zmSFGNqtY5TjPi+K2nHyCWZco/PYigNBXuJPv9JucaAeSQhxbfyd2tkRXlaSk/KlrD DxQrTgyGAFhk6VBtdfnGkHtMOo3jWLpBD7yXEFV9f9mGHB3xjBtf411hlpgUIFmv/q 7z1B8c1s4Uy0O5amDJVmLJC+p2ziZebN0oCywFmg5uvSVnzr2Z7adjx834LZuG8NRq VzyVZ8/e6lepA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id CB8CD180055 for ; Thu, 9 May 2024 09:27:40 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_LOW, 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 fout6-smtp.messagingengine.com (fout6-smtp.messagingengine.com [103.168.172.149]) (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 ; Thu, 9 May 2024 09:27:40 +0000 (UTC) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.nyi.internal (Postfix) with ESMTP id 0000613803C2; Thu, 9 May 2024 05:26:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Thu, 09 May 2024 05:26:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beccati.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1715246810; x=1715333210; bh=EsXOl0Ria451TJwh4DNoNwpDPGQ6dfsm0VH1kKwRHXk=; b= Hb3xIJaAEl0M23NGyYgZKGnlMGOdnELMucw76IHmisJuUHUHWQ33cyz750Hgupcc IG22K5R8oODtkC//ipO8S29+ZkD0Q0gYlIPjxvatM161F0RLWag1XJNarUv/ojV/ dCkC1T2WUq4915upw+Tw4aYtwmBVwVymOuUPHqdS8FMiDIMzZXCwUFNXkTR9V3p3 w+RYeqAnQjIQRbgeDpSm3jbNcfmOpT6xEhKncYYdOV1eHukynbIXQD4q3PehHKPW XySq0ALHznnzY+0HVzOHBkBklFLkOiwtuaqMYcSmgHFHJ+HZKTMGucIJw+MG3Cng 6O6JBGo9opoTTTYkzOdYcQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715246810; x= 1715333210; bh=EsXOl0Ria451TJwh4DNoNwpDPGQ6dfsm0VH1kKwRHXk=; b=i wMzPGhr9RGuVtEAJNZyDB8cDeY7ea2pz+B4IYUTH2d+Wb+21Q5DsvDSGTd2MNPxV mUe+1J2KIcQsS8yUUzf66NuOx9uM1fjgWTHTacw5hp3BZxBvQb3Flo4xEjmF2l4e nDMDTKYFAIpqhzqaMjuoQHSdVdor0ewSlLwNTPhHlAcISBzOesTblKqzCdiBJ0X+ FmDTpWRl0ZInJbAS8+XfcUcjYsjQgJF3CpcW2XvcZS7NozXdM+zi7MbqpKuevwZi QggpyC9Qnn41Z4Oi8sBsbVtN+paD0ZHWFc8OHeBnw30hwEQ11Nvves+RgV+5Q1tI fX0ZetSRSYtmJ3t+onSqg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdefvddgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffhvfevfhgjtgfgsehtkeertddtvdejnecuhfhrohhmpeforght thgvohcuuegvtggtrghtihcuoehphhhpsegsvggttggrthhirdgtohhmqeenucggtffrrg htthgvrhhnpeduudegleduffduuddvtddvffegtdffleejfeekudeugfdutefhteefgfff ffefteenucffohhmrghinhepphhhphdrnhgvthdpghhithhhuhgsrdgtohhmpdgsvggttg grthhirdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepphhhphessggvtggtrghtihdrtghomh X-ME-Proxy: Feedback-ID: i6f4c46c2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 9 May 2024 05:26:49 -0400 (EDT) Message-ID: Date: Thu, 9 May 2024 11:26:48 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PHP-DEV] [RFC][Discussion] PDO driver specific parsers To: "internals@lists.php.net" Cc: Saki Takamachi References: <00079548-1799-4215-8F73-EFDCD795532F@sakiot.com> <098996d6-32e4-460c-a82a-aeef3b7e61d3@beccati.com> <9A6577BD-3BC5-41E1-965D-4B30D16CDB3D@sakiot.com> <444757f0-78c8-41e1-aaa1-70ad4016d813@beccati.com> Content-Language: en-GB In-Reply-To: <444757f0-78c8-41e1-aaa1-70ad4016d813@beccati.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: php@beccati.com (Matteo Beccati) Hi, Il 03/05/2024 11:14, Matteo Beccati ha scritto: > Hi internals! > > I've updated once again the RFC and implemented most of the 3 major > dialects (mysql, pgsql, sqlite) in the drivers. > > https://wiki.php.net/rfc/pdo_driver_specific_parsers > > https://github.com/php/php-src/pull/14035 > > I've tried to keep syntax changes we might not want as separate commits > in the PR. > > For example: >  - the pdo_pgsql driver now also understands C-style escape strings and > dollar quoted strings. >  - pdo_sqlite supports Access-style [identifiers]. >  - pdo_mysql will consider "--" a comment only when followed by > whitespace. > > The latter has been a particular challenge for me and I've been able to > overcome it by using the re2c:eof feature, which I then discovered being > available only in a later version compared to our requirements (1.2.1, > released Aug 2019). As is, the Windows build fails on GH because the sdk > ships with 1.1.1. > > Perhaps someone with better re2c knowledge can get it working with re2c > 1.0.3+, or perhaps it's not really worth it. > > Looking forward to hearing from you! I didn't see this sparking up discussion, so it either went unnoticed, or everybody is fine with it (even the re2c version bump) ;-) In any case I'm planning to start the vote in about 2 weeks from now. Next week I'll be organising phpday in Verona, so feel free to approach me if you are around and have any questions. I might even try go get out of my comfort zone and do a lightning talk on the topic. That would be a first in 20+ years of conference organisation... we'll see! Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/