Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:128448 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 lists.php.net (Postfix) with ESMTPS id 7B79E1A00BC for ; Tue, 12 Aug 2025 01:08:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1754960787; bh=9avFgf0BdVGXTNKihGue3yXJ1L09Yyf+gwSjAYDcNwo=; h=Date:From:To:In-Reply-To:Subject:From; b=IJw8fSJGPcCVcVt+hqzlu7chJk/1n5zEEpk7qJGuUQXa8ugAc0AfVAGAjuWh+zEv3 FJWEzkScseH8G+pe9DlVtGa3i9Me/9yPimZ/623OwAwn6dOIDaFpNZh38wEM2HsFg3 6GHxEj8ZDA1mXYa/ml2X3XiPN5wiUsQ/X8I4G7X0q40y8PYFV8V9HfIfzr+MKY7kx0 U4BO2wwvmo93gQs2i1c0tpyTnqPJRDb5OjLHT3Ul62IPeBcL+0U6x3L3f++bESPt6F Hx1U/u25urBqcgAqHKIwdlIvnSephKaJ/rOqHY3YPEaTh3DQTRkxpDpSrK5biLyWKO hxV5i836HoxLw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E90DF180077 for ; Tue, 12 Aug 2025 01:06:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,HTML_MESSAGE, SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from 102b.hosted.hey.com (102b.hosted.hey.com [204.62.115.184]) (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, 12 Aug 2025 01:06:15 +0000 (UTC) Received: from hey.com (bigip-vip.rw-ash-int.37signals.com [10.20.0.24]) by 102.hosted.hey.com (Postfix) with ESMTP id C3BE17FFC2; Tue, 12 Aug 2025 01:07:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=archte.ch; s=heymail; t=1754960872; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=a5cD5D9Ns90YJ/zH5twGsqPZrGFWldcGIiTO9+Gwpd8=; b=WJ1q6kA9LpMON066IlMjl/KGWH0vGBZoM/A2simjVTSXocerAdibtr7YmJLLkOoouKH238 NGXa3tYFP+F+fZT/pMESdbc/+w7Yv1geTPSfJZqJFqb0FbiG4JPQQEupia2Vi0nz0YZ/02 ub/jZ6G3bwW2r+wyf9aMU1T3EFKSnY6AYIToTrY5WAnY0JYmxcaQFr2EvleyWTNyeUd0z0 DQZVuINKkn9LoNalQ784tdnQMe6C6QXEZMjpE+pRIjWnowAosQMGWn8ra4FZHEtM6fb58K VCj52+OY0rzijACjtnjkzpZWACrEawzArVWqh1EzWfjbq36fJZNGI+wxCWD2pw== Date: Tue, 12 Aug 2025 03:07:51 +0200 To: internals@lists.php.net, Morgan Message-ID: In-Reply-To: <32e94668-a516-41d8-90b5-72a0bae3852f@varteg.nz> Subject: Re: [PHP-DEV] PDO\Sqlite: Add transaction mode attribute Precedence: list list-help: list-post: List-Id: x-ms-reactions: disallow Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_689a93e7a02e0_2320130112819"; charset=UTF-8 Content-Transfer-Encoding: 7bit From: samuel@archte.ch (=?UTF-8?B?U2FtdWVsIMWgdGFuY2w=?=) References: <32e94668-a516-41d8-90b5-72a0bae3852f@varteg.nz> ----==_mimepart_689a93e7a02e0_2320130112819 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable By enums I'm assuming you mean PHP enums. That could work and would solve my issue of trying to represent the values of the attribute (only thing I'm not sure about is Pdo\SqliteTransactionMode being directly in the Pdo namespace). I've included a sample implementation in this comment On August 12, 2025, Morgan wrote: > On 2025-08-12 07:35, Samuel =C5=A0tancl wrote: > > Hi, I've opened a PR adding a new attribute to PDO\Sqlite: https:// > > github.com/php/php-src/pull/19317 < src/>=C2=A0 > > pull/19317?=C2=A0 > > > notification_referrer_id=3DNT_kwDOAfgLhrQxNzkxMjcwMjYzOTozMzAzMzA5NA#is= suecomment- > 3176177745> > >=C2=A0 > As far as the form the attribute takes goes, an Enum with the values=C2= =A0 > DEFERRED/IMMEDIATE/EXCLUSIVE would do the job. > > (As for calling it an attribute, I thought at first that what was > being=C2=A0 > suggested was an Attribute, rather than a connection option.) ----==_mimepart_689a93e7a02e0_2320130112819 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
By enums I'm assuming you mean PHP enums. That could work and = would solve my issue of trying to represent the values of the attribute (= only thing I'm not sure about is Pdo\SqliteTransactionMode being dire= ctly in the Pdo namespace). I've included a sample implementation in = this comment https://github.com/php/php-src/pull/19317#issuecomment-= 3177353751


On August 12, 2025, Morgan &l= t;weedpacket@varteg.nz> wrote:
On 2025-08-12 07:35, S= amuel =C5=A0tancl wrote:
> Hi, I've opened a PR adding a new at= tribute to PDO\Sqlite: https://
> github.com/php/php-src/pull/1931= 7 <https://github.com/php/= php-src/=C2=A0
> pull/19317?=C2=A0
> notification_referre= r_id=3DNT_kwDOAfgLhrQxNzkxMjcwMjYzOTozMzAzMzA5NA#issuecomment-3176177745&= gt;
>=C2=A0
As far as the form the attribute takes goes, an Enum= with the values=C2=A0
DEFERRED/IMMEDIATE/EXCLUSIVE would do the job.<= br>
(As for calling it an attribute, I thought at first that what was = being=C2=A0
suggested was an Attribute, rather than a connection optio= n.)
----==_mimepart_689a93e7a02e0_2320130112819--