Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:123188 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 CB3ED1A009C for ; Tue, 23 Apr 2024 16:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1713890544; bh=top+5/ohffrX0bsXyX1YLfFCmSx3GINgADcD354Jezk=; h=Date:From:Subject:To:Cc:References:In-Reply-To:From; b=bXpC1svr5WyH6I20fQ5Z9+3l7cRDtkUYJP2WaoJM9Zd0SxRVZ6bcmrIWzQ4qTd/RJ tEdXt6Xr1LzRlSinpwvqozVIKHVoGl+e5Yt2kMBP+3Ku83xG1hHFjx3NQDSXxWBiyN yxm5LxMrMDAG12m1U3zHoGSpRCxXX3hxPwVjYciRLxPugD85Bg1xFL95ulgW58mFCa ZQzSwynqhBRDPIRp1KdsW5SoHSKUXwppntCMnZCep+Zi0uVq7947w2o3F7BFzb3MX/ nHYH8EtNJugIUImvB6E5TvpaTs5fETlv/lTfPBdapDZJXVEdlIZCGHf7ptwGh6D9SK aVAZ8kLgpIZtQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A8BA018006C for ; Tue, 23 Apr 2024 16:42:23 +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,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 wfhigh7-smtp.messagingengine.com (wfhigh7-smtp.messagingengine.com [64.147.123.158]) (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, 23 Apr 2024 16:42:23 +0000 (UTC) Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.west.internal (Postfix) with ESMTP id 86ED6180012A; Tue, 23 Apr 2024 12:41:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 23 Apr 2024 12:41:41 -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=1713890501; x=1713976901; bh=Bo87MWvjxm0D7keGJF1m9pqpQ9fD1kEhu/eHMsFQUos=; b= AMWIiUPdpxRrWWaLSnLegoHCm2DaJSkJLNRkKDOPeZIbuHuw3D7zsU9Q0niPdJja QSMKG8OCa7WzMy1ioSROtb30rksGXpQ5GAB1HOL5ftpUQIFHBiKn1RcrFhb73xfK A/2y+2TcXOKQ8JdEyriTdK7qZEln3rF2AGABZvrLkDnpo4WwZEFkeQDjjNXTUa+j ZnhFoO6dip5/2fTsk1RWoxHZ7bSOFtu5y+Xrvvl4cYmC2x3DnvbrOqXZd+0EElXo ixnTeH0sUimiLQwVzFGcGUs240dY2o8Xqu34YLnA11R3ea7hve9txTiP7AIfxws1 PYxiY0DIydC0xAvkYYVCfQ== 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=1713890501; x= 1713976901; bh=Bo87MWvjxm0D7keGJF1m9pqpQ9fD1kEhu/eHMsFQUos=; b=f 8g8xAvwoQHqWp6kuHtTuFlOea8L4nfbaYKrCrwWU5qX3CjpJ8sj5Zs4u22Y+WxsX sPkIv0lkJBx0e0ud/Pbk6/OSTOUcBwkeup/BgwLVG5B++5HXyMD79/jS2OVZc2JP W08fIoRUv3GYvBPAESCEAH+8Ok2ItR2blFPg9FDVHDM1jaLVSMQr6XPV2LcbPrxL 4u9R0LfmbWVJPBIFBhrvodcKuWMggM6zLwyPBfc84enkpE+fhyT1zkEU9TsV8Qti pxSF53NRkx3QAK265zPVCrLzAOolGlhZVvOj7sJ+SKfxa/hrt1uUomszfJ5HXGWL VIK8Q/SfiL1Stvwje3IRA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudeluddguddthecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfhuffvvehfjggtgfesthejredttddvjeenucfhrhhomhepofgr thhtvghouceuvggttggrthhiuceophhhphessggvtggtrghtihdrtghomheqnecuggftrf grthhtvghrnhepkefghfffteefvedvkeeivdekvdfhffehtdejvdehfeeiheehgfeiteeg tdegieevnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpsggvtggtrghtihdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehphhhp segsvggttggrthhirdgtohhm X-ME-Proxy: Feedback-ID: i6f4c46c2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 23 Apr 2024 12:41:39 -0400 (EDT) Message-ID: Date: Tue, 23 Apr 2024 18:41:38 +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> Content-Language: it In-Reply-To: <9A6577BD-3BC5-41E1-965D-4B30D16CDB3D@sakiot.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit From: php@beccati.com (Matteo Beccati) Hi Saki, internals, Il 17/04/2024 16:30, Saki Takamachi ha scritto: > Hi Matteo, > >> Thanks for the feedback. I will reference this issue as duplicate too in the RFC. > > Thanks for the reference to the issue. > > >> I'm certain if we dig deep enough we'll find a few more. > > Agree. Maybe we can find something other than PostgreSQL. > > > I have read through your RFC. If we change the default scanner from the current, is there a possibility that an unintended BC Break will occur? I don't think there is a problem with MySQL, but I'm a little worried about other drivers. I have updated the RFC quite extensively. I've added the results of the research I've done for all the supported PDO database types and ended up slightly modifying the proposal in a way I thought made more sense according to the results. I also have a draft implementation ready: https://github.com/php/php-src/pull/14035 Tests are green. DBAL tests are green for sqlite, mysql and pgsql, which is what I could test locally. And as an exercise, an attempt to support PgSQL escape literals, e.g. e'backslashes \'accepted\' here' https://github.com/mbeccati/php-src/pull/1/commits/79b59d958c43042e54348dfbae0b0c2509563aa7 which I declared as out of scope but could in fact be supported without too much effort. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/