Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121578 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 65364 invoked from network); 4 Nov 2023 08:56:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 4 Nov 2023 08:56:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1F3F0180544 for ; Sat, 4 Nov 2023 01:56:27 -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=-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-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (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 ; Sat, 4 Nov 2023 01:56:26 -0700 (PDT) Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-5872c6529e1so1623106eaf.0 for ; Sat, 04 Nov 2023 01:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699088186; x=1699692986; 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=cIBvqrz+0GjQ1eHR5H9VCgPv9ogfD5qLEF8HaLB6/mc=; b=i5kAVzmH/UZfT9DrsXpY/6DGvbgnFk89ggVEpLBEf27w68h81J9Eyko5GscjklwG3L ft4mefiuFiufo36MZofFsrb39vVg1HlaVngbsSzR+wQ/QGDHkS8e21pRrCXoq9GEMU80 4qa/LHiX0K8bqsS49KQNObjrQ+wxkZQfLQ6F2rP6MsafkC7gjZ/0r5v9bQHZVVh738gQ 9YaDUMCarZIEMrCNRj+maRLuqtKvREaYdjTZC2zkAYKSjGFE5dpMyJOiVcj+VQzASGUp A36gugGXUayfwBIACD7zxBkFadguvm3jkqkoLvQ1dNP1djV1j99tediBjA7EPswG6umQ m5mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699088186; x=1699692986; 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=cIBvqrz+0GjQ1eHR5H9VCgPv9ogfD5qLEF8HaLB6/mc=; b=q2Nw1zvsZPnu37+QZREn/p7measF1+TXPhgNkQAr1g+2PCA2Ecw6RERvD16xHPe17V gC7Sog3sDXa5+QiWViXHACJF3lNK/7VVFdhh1ZfZTaKXXjNPM8sBlkCbcMnUSm0tDTo7 QLLqFfYoEr7fiVfHxbQP0RyWuX5pHX24x1G4rB5c5xUt9P5qSEZnmVlPDZlJbjqadxP8 O+YtS03bim8g2slB/72d8n6w8fh/su8gAUVPdNJkvMrOc5sY/qbFK3g8Lx0jF5H8uery sUqYIdZx40hDLIXIkdnOAC+kl3FtEbEZNM/Eusg6yLwJYzglr+ExMFubXLgwSms3qn2O nYIw== X-Gm-Message-State: AOJu0YxSeXcgG5Cj0ShTQiQMctaGKR+cQ/IFa+VxjLxlEkzSQa0Z5PvV m7DKGd2oCMF+0eY9yWsh6doPvxQXe8vBoU9VoVkOUJ3J110= X-Google-Smtp-Source: AGHT+IFrwbtINZBEq+Mmhc9Gc9eTMQhNiTquk/jHucaIhIMRjogZ5IHvsbrLdMullqoz+UN1mZU/DsJ869Fa/VufIhU= X-Received: by 2002:a4a:d112:0:b0:587:992d:48b with SMTP id k18-20020a4ad112000000b00587992d048bmr168617oor.1.1699088185730; Sat, 04 Nov 2023 01:56:25 -0700 (PDT) MIME-Version: 1.0 References: <734FB3C6-EBE6-4F35-8738-436AF7D8B161@sakiot.com> In-Reply-To: <734FB3C6-EBE6-4F35-8738-436AF7D8B161@sakiot.com> Date: Sat, 4 Nov 2023 09:56:14 +0100 Message-ID: To: Saki Takamachi Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000c0ad3e06094fcb17" Subject: Re: [PHP-DEV] Fix the inconsistent behavior of PDO::PARAM_XXX From: divinity76@gmail.com (Hans Henrik Bergan) --000000000000c0ad3e06094fcb17 Content-Type: text/plain; charset="UTF-8" I had no idea PDO's PARAM_INT and PARAM_BOOL was so buggy, good catch! On Sat, Nov 4, 2023, 07:59 Saki Takamachi wrote: > Hi internals, > > As shown in the following issue, the behavior of `PDO::PARAM_XXXX` is > inconsistent 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 > implementation that should not be changed, it would be very helpful if you > could tell me why. > > Also, if an RFC is required, it would be helpful if you could point it out > as well. Personally, I don't think an RFC is necessary since this is some > kind of bug fix. However, I believe the target should be the master branch > as it changes the user experience somewhat. > > [*] I'm not thinking about LOB here, but once I leave them with their > existing behavior, I change the behavior of other types. Because LOB have > complex behavior, the scope becomes too large. After making this change, I > will test again and post another issue if necessary. > > [*] I would like the type of PARAM_BOOL to be exactly bool, but this would > also require changing the behavior of the emulator, and I would not be able > to 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 changes are completed, I will verify it and post an issue. > > [*] odbc etc. are not compatible with emulation in the first place. There > are no plans to change this in this context. > > Regards. > > Saki > --000000000000c0ad3e06094fcb17--