Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121598 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 41408 invoked from network); 6 Nov 2023 12:20:22 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Nov 2023 12:20:22 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 40B44180087 for ; Mon, 6 Nov 2023 04:20:22 -0800 (PST) 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,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 ; Mon, 6 Nov 2023 04:20:22 -0800 (PST) Received: from smtpclient.apple (107.64.239.49.rev.vmobile.jp [49.239.64.107]) (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 6D542401EE; Mon, 6 Nov 2023 21:20:20 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sakiot.com; s=default; t=1699273220; bh=SZaxdWsljiDSyQrEdbnf47KLg0IjPbZYjOPKzpLL/Ow=; h=Subject:From:In-Reply-To:Cc:Date:References:To:From; b=Ux2WNgxxHDXQ+LNng2RnWtLXU6Dm2PufBcsu2OsyA+KJRBigsI8odd3bx9DHGfAns 67BhmfiPoNGL7Q9l9WnX1J1I+vyHX2cXeYwvHnq32ZEo2mY+EuClpIWU/BrFXaXCy8 NhekwFNr0X7efL4sLNOdwl8gV8qekYwFXnODXpic= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) In-Reply-To: Cc: PHP internals Date: Mon, 6 Nov 2023 21:20:07 +0900 Message-ID: References: To: Hans Henrik Bergan X-Mailer: iPhone Mail (21A360) Subject: Re: [PHP-DEV] Fix the inconsistent behavior of PDO::PARAM_XXX From: saki@sakiot.com (Saki Takamachi) Hi Hans, > I think it'd be a good idea if they used FILTER_VALIDATE_BOOLEAN and FILTE= R_VALIDATE_INTEGER type logic, with an error if conversion fails.. This can be difficult. Forcing an error is highly likely to destroy the exis= ting user environment. > I wonder if PDO::PARAM_BOOL_OR_NULL would be worthwhile=20 That's what I thought at first, but I think it might be a good idea to leave= it as a fallback, especially for NULL. In fact, there have been proposals t= o deprecate PARAM_NULL in the past, but none have made it to the voting phas= e. I have not looked into it in detail yet, but I suspect that during the di= scussion stage, they may have come to the conclusion that it should not be a= bolished. Regards. Saki=