Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118101 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 71577 invoked from network); 27 Jun 2022 05:48:55 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Jun 2022 05:48:55 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 96B1E1804F8 for ; Mon, 27 Jun 2022 00:39:37 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS19151 66.111.4.0/24 X-Spam-Virus: No X-Envelope-From: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 27 Jun 2022 00:39:37 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id DE65B5C01DF; Mon, 27 Jun 2022 03:39:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 27 Jun 2022 03:39:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beccati.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1656315575; x= 1656401975; bh=yvs/Alx8349JYfBEhc/pyCOR01XKhmvKKin3QlYVlxo=; b=e Jj43+cDeQMQwUjolT9g1HYUwnM9YVzbVLa1MCS/pmBbnU4zeSV0kKGpKJud+xEkz BCqR58y6KAXIjbG0DjhltRKiu4RuRzbM18Xg6604dhwj7VV9k/y9JmsCLx+gh1dv 03M9Z30BRID+zEQKDmqdsUWEhdD/DWAgy/PL0VIzpoMhSzrbBLmj3XLUHdsRJgdB 80cNO4O2XHU8z1jVFKVTjnFfsqFgHatdGDx576dHjNhM4Jwpewaz9vdU4KO2h17j PV3I4e30PMfoXb9JlqV0Qp0TpsbNDlXRiNTsjzfR6Msl8WNf/wzHeANIlIpmWBuS dtdKo2OHZhaSIvrH0XP0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1656315575; x= 1656401975; bh=yvs/Alx8349JYfBEhc/pyCOR01XKhmvKKin3QlYVlxo=; b=R qR8kG4u7VN5khSaiY1ulXnuqXj1Taxav0eOolGHJFFqHSQJ6yrIYpiue+4wKqG7k uRxHHFXa5CdUAi1UGdxQrSnwmyfj8mbl5CUlbeVn9xEXrwsmsASW9t4XhLC8opgV 1QDbao8bGTNo6h7aCq3pUkRInv9woVy5Ww+HcxuDjyVAUYSEA8La47t9aMRyEfpZ RjFspv8tq5lciZNZJw0DY9ff3qwRagjafpIZEdVb+9IIM0pINcL2XV/Ua1Gc9CBU wOmRZgLafahY9oIYKyRi48kkxIJZeRNciyOagee3zbntBf9wICNF3orTK9K+SsRD bYoRvr53PtbLjnWjrJkEA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeggedguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfevjggtgfesthejredttdefjeenucfhrhhomhepofgr thhtvghouceuvggttggrthhiuceophhhphessggvtggtrghtihdrtghomheqnecuggftrf grthhtvghrnheptdduteffudeftddugfeuueekieeltdekhfdtffeghfefiedvffejledt hefhfeelnecuffhomhgrihhnpegsvggttggrthhirdgtohhmnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphhhphessggvtggtrghtihdrtgho mh X-ME-Proxy: Feedback-ID: i6f4c46c2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 27 Jun 2022 03:39:35 -0400 (EDT) Message-ID: <18a384bd-9ac3-728d-85b8-36280db116ea@beccati.com> Date: Mon, 27 Jun 2022 09:39:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.0 Content-Language: en-GB To: internals@lists.php.net References: Cc: Marc Bennewitz In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] [Under Discussion] PDO driver specific sub-classes From: php@beccati.com (Matteo Beccati) On 27/06/2022 08:50, Marc Bennewitz wrote: > 2. Another annoying PDO feature is the configurable behavior of exceptions. > As now exceptions are the default way it would be nice to not all > disabling exceptions if instantiated the new way. > > > Create all DB sub-classes? > > yes please I too think this would be best for consistency. > > PQescapeIdentifier > > I think these should be a general PDO method but as we already have > `quote` it would be preferable to name it `quoteIdentifier` or how would > you explain the difference between `quote` and `escapeIdentifier`? I haven't checked the feasibility, but how about a PDO::QUOTE_IDENTIFIER constant to be used only with the existing quote method? e.g. PDO::quote('A column name', PDO::QUOTE_IDENTIFIER) That said, I have the feeling this RFC suffers from feature creep and is subject to a fair amount of bike shedding. To me that's a bit too late for 8.2. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/