Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121817 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 31272 invoked from network); 27 Nov 2023 11:02:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Nov 2023 11:02:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 6D3C318002B for ; Mon, 27 Nov 2023 03:02:50 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from forward500c.mail.yandex.net (forward500c.mail.yandex.net [178.154.239.208]) (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 ; Mon, 27 Nov 2023 03:02:48 -0800 (PST) Received: from mail-nwsmtp-smtp-production-main-90.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-90.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:4c84:0:640:718e:0]) by forward500c.mail.yandex.net (Yandex) with ESMTP id B8D4D60B36 for ; Mon, 27 Nov 2023 14:02:39 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-90.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id c2R2G5Ml1qM0-7zlSfH8t; Mon, 27 Nov 2023 14:02:39 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=php.watch; s=mail; t=1701082959; bh=KMcytRsuIxcDjhRMX2krVT1l76VqFQ/dPpGiXdsWWS4=; h=To:Subject:Message-ID:References:Date:From:In-Reply-To:Cc; b=2RHBTouzdXCAAsx32odwF0PMeQ0/Ows6vqoahKykZPNzeJ+wVK5d6g2FpS03mdiEf +pERLGhoJIm4OdVUmnq+xX6B+cMkMFuy7hrG/Td8zb/LxnA0iaYcS7tnOu/ccDyuvA HHjBRNKY8+Bn3hrzHF37GMpT3n1KJsIKp785Tlh0= Authentication-Results: mail-nwsmtp-smtp-production-main-90.myt.yp-c.yandex.net; dkim=pass header.i=@php.watch Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-5094727fa67so5800257e87.3 for ; Mon, 27 Nov 2023 03:02:39 -0800 (PST) X-Gm-Message-State: AOJu0YzMG8Pxd+Wf8RSufArqjZ9JAurocSiJQW22beLFJ2h7fFMf1mGk vNy03otS+UKbVH/59JUAjZctFWavfPVNTbpJLOI= X-Google-Smtp-Source: AGHT+IFjSkSmLsQO+Ckl/URzBu12tEZpZoTbZnGSq1zr/wPgOukyR3eJi6Os5JpViBdRfXt23dSXxexmeh0RBEe8RZI= X-Received: by 2002:a05:6512:2314:b0:50b:a9af:8749 with SMTP id o20-20020a056512231400b0050ba9af8749mr5241983lfu.42.1701082958755; Mon, 27 Nov 2023 03:02:38 -0800 (PST) MIME-Version: 1.0 References: <34198326-0244-4856-BF74-503D9A4D00D4@sakiot.com> In-Reply-To: <34198326-0244-4856-BF74-503D9A4D00D4@sakiot.com> Date: Mon, 27 Nov 2023 18:02:12 +0700 X-Gmail-Original-Message-ID: Message-ID: To: Saki Takamachi Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] [PDO] I want to unify the behavior when changing the autocommit mode setting while a transaction is open. From: ayesh@php.watch (Ayesh Karunaratne) > > Hi, > > > In the latter case, I suppose they would expect the behaviour to be compliant with the database standards. > > I may not have had this perspective. And this is a strong basis for explaining that different drivers behave differently. > > I will continue with the current implementation and consider the optimal method for each driver. > > I wanted to mention a recent RFC that passed its vote (https://wiki.php.net/rfc/pdo_driver_specific_subclasses). It proposes to add a PDO subclass for each driver, so we can make individual driver-specific functions and changes more visible at the API level. Unfortunately it did not make it to PHP 8.3, but the RFC vote indicates the trajectory everyone hopes to have in PDO. It was voted yes unanimously, so there is definitely a preference in majority of us to iron out the differences, but perhaps in a non-BC way, preferably making these inconsistencies obvious from the API level and not at the test/doc levels.