Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121575 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 56405 invoked from network); 4 Nov 2023 06:59:44 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Nov 2023 06:59:44 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9555B1804B4 for ; Fri, 3 Nov 2023 23:59:42 -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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,MIME_QP_LONG_LINE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS9370 160.16.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail.sakiot.com (mail.sakiot.com [160.16.227.216]) (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 ; Fri, 3 Nov 2023 23:59:41 -0700 (PDT) Received: from smtpclient.apple (159.69.239.49.rev.vmobile.jp [49.239.69.159]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.sakiot.com (Postfix) with ESMTPSA id 51C58401EB for ; Sat, 4 Nov 2023 15:59:38 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1699081178; bh=tQauhwhey8QC6S0OP+MQtPl7YJmDbXMajazecvIn5qA=; h=From:Date:Subject:To:From; b=qmduWh/kpY58GUvbYxcERmXZbIckPF7QAhuFIFaew58oJvPGLydSKEDdH8BfAuNMg prRwmJe6MZGPMkr4j+l9hBJ1TyApT1YuZaySZ7eiRNnSrPv/g9J51ZY6sXygBJgi1L PqXI6iJgiJQWO3QFPN4CkRGD/PDVvjuN+EWbvhzU= Content-Type: multipart/alternative; boundary=Apple-Mail-C96AC14F-C559-4834-AA10-08533AE68E09 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Sat, 4 Nov 2023 15:59:24 +0900 Message-ID: <734FB3C6-EBE6-4F35-8738-436AF7D8B161@sakiot.com> To: PHP internals X-Mailer: iPhone Mail (21A360) Subject: Fix the inconsistent behavior of PDO::PARAM_XXX From: saki@sakiot.com (Saki Takamachi) --Apple-Mail-C96AC14F-C559-4834-AA10-08533AE68E09 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hi internals, As shown in the following issue, the behavior of `PDO::PARAM_XXXX` is incons= istent and I would like to fix this. https://github.com/php/php-src/issues/12603 First, I tried fixed pdo_pgsql. https://github.com/php/php-src/pull/12605 Eventually I plan to make similar changes to all bundled pdos. What do you think about these? If there is a reason for the current implemen= tation that should not be changed, it would be very helpful if you could tel= l me why. Also, if an RFC is required, it would be helpful if you could point it out a= s well. Personally, I don't think an RFC is necessary since this is some kin= d of bug fix. However, I believe the target should be the master branch as i= t changes the user experience somewhat. [*] I'm not thinking about LOB here, but once I leave them with their existi= ng behavior, I change the behavior of other types. Because LOB have complex b= ehavior, the scope becomes too large. After making this change, I will test a= gain and post another issue if necessary. [*] I would like the type of PARAM_BOOL to be exactly bool, but this would a= lso require changing the behavior of the emulator, and I would not be able t= o issue a PR for each driver, making the scope too large. For this as well, I= will just align it to `int(1)` or `string(1) 't'`, etc., and once these cha= nges are completed, I will verify it and post an issue. [*] odbc etc. are not compatible with emulation in the first place. There ar= e no plans to change this in this context. Regards. Saki --Apple-Mail-C96AC14F-C559-4834-AA10-08533AE68E09--