Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121588 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 46804 invoked from network); 5 Nov 2023 12:40:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 5 Nov 2023 12:40:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 945A8180211 for ; Sun, 5 Nov 2023 04:40:38 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) (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 ; Sun, 5 Nov 2023 04:40:38 -0800 (PST) Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6ce322b62aeso2271691a34.3 for ; Sun, 05 Nov 2023 04:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699188037; x=1699792837; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+CaQAOIXlCCW2L9i0GCVX7AqMNW9Meim2zZdeUGtQW8=; b=bts/9qOO3bfh0AidYVlqofgKLx72uTXYnmx6ZAsGCLJ4zI1ysC3Uh5t6e3gU71Ur1B zyObyTC0L2qCZMamI6qIiQrX6fDQYnMpCNat94lmpEqc7HkrMa1+E+mppS53UpHYbIJJ cwZ/kYWUeKicXAAv0Y9IjNqD3+qr1X1cLNaoiQPc2nM2dDRThpMoLEF5viYjn9TiA4+T qO9yppqJuD5eb7AWRY1G2P4rFWDgaPUtDJT4vhkHZDp7NgX5b4bzbYxRmV/NbEMj5w/V iV3rytnN8cwxf9SYIeE+3YSYfXFrIy3+v7EvKrs2rU088PZ7Jk3Az2ocUKfHyLEVn/ro SfRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699188037; x=1699792837; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+CaQAOIXlCCW2L9i0GCVX7AqMNW9Meim2zZdeUGtQW8=; b=PIAcKK5Oa3GU3pQqAf/ojiU8xQlI3ye76g8deM/LYaCcjbitWd1XbVWri2deREhVnU y1ddBilyyWUTS/p5hmKkUt41MeuCoc1KNq7atJQ1FVQF/tqsE0ZDCbtLsTw12u8xu/zl lLZnZKknRZgf7fPjtFwG/IqRPfDjAfYR/i0W+KLJyDAba+jolQTfl8uinat90Qn5rkbp wuMx9SXkCHvbxJniF06W9xFhET+NgsRH49yASDY1XeadLRpW+LnUh3dKFByNPKIKU1T1 JMDXmo+eG/EI3F6ixtSOLptYiow+Yp81RjprRGKhixSX5pYM8WKV4m993FM2STWyUW8U zsHg== X-Gm-Message-State: AOJu0YypWLjPLNKdZKCNCx38Pqs6XBArZ+HjcRBklkWuuowBGJnX46Lk N1QQzCihhIKVIwGayOLKGCkES9HEeVOFOu5RhmBKAUah2Gr94Q== X-Google-Smtp-Source: AGHT+IEPUmntqC8lF6V4l9Vi4uRHKgK3bJB1L5mlc0mwo5jpogNNzEx0hVsiRpoAKAXdBeARgfe1i7a9YbCRwxibV2o= X-Received: by 2002:a05:6830:925:b0:6cd:8c8:1654 with SMTP id v37-20020a056830092500b006cd08c81654mr31194401ott.2.1699188037063; Sun, 05 Nov 2023 04:40:37 -0800 (PST) MIME-Version: 1.0 References: <734FB3C6-EBE6-4F35-8738-436AF7D8B161@sakiot.com> In-Reply-To: Date: Sun, 5 Nov 2023 13:40:23 +0100 Message-ID: To: Saki Takamachi Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000005b1ae90609670b57" Subject: Re: [PHP-DEV] Fix the inconsistent behavior of PDO::PARAM_XXX From: divinity76@gmail.com (Hans Henrik Bergan) --0000000000005b1ae90609670b57 Content-Type: text/plain; charset="UTF-8" I think it'd be a good idea if they used FILTER_VALIDATE_BOOLEAN and FILTER_VALIDATE_INTEGER type logic, with an error if conversion fails.. I wonder if PDO::PARAM_BOOL_OR_NULL would be worthwhile On Sun, Nov 5, 2023, 10:10 Saki Takamachi wrote: > Hi, > > To think more deeply about this issue, I investigated various cases in > major databases. It's too big to write in an email, so I posted it in the > comments of the issue. > > https://github.com/php/php-src/issues/12603#issuecomment-1793679776 > > Regards. > > Saki > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --0000000000005b1ae90609670b57--