Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111697 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 86062 invoked from network); 26 Aug 2020 19:03:07 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Aug 2020 19:03:07 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id ED0AC180559 for ; Wed, 26 Aug 2020 11:06:19 -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,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mg02.mydataknox.com (mg02.mydataknox.com [185.62.73.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 26 Aug 2020 11:06:18 -0700 (PDT) X-AuditID: c0a88e79-2bfff70000004872-97-5f46a4989635 Received: from cp007.mydataknox.com (cp007.mydataknox.com [185.62.73.141]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mg02.mydataknox.com (Mydataknox Mail Gateway) with SMTP id FC.81.18546.894A64F5; Wed, 26 Aug 2020 20:06:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=voxdiversa.hr; s=default; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=e8ZA3CU5WUIe8A0E2biyfxKZLlMiS0r6hact2RX/1U8=; b=d69fm+VWloiGEw4WBAnA8edUV KrMyUxA5Jd+QtPGpmPqV4tqrZBsu+1BzJ5NnZm1UJhO/poun3C+rgty7iHuCqRCOT2CF/X5akzh1c Y/h2pkfcUXRrE4XZcdLL9fymhrpaG3RZjmobIvLg169oastuIw3aFL+bs6mwZSSDKGYpg9smQJJQ+ Bi8hPyEV3AVNIXBdzTRmsL3U5P1oWukFxyXKWNX79oK1FjfNS+pN9S2KDJT9q8f1MbC2Kt+dVvTmm 643uodQM8Ll9QAMAJuWvkFhCg8BHgV3k1s01abds73kzGILFPFlVJVBJIlsikEBwANzsoay0nOzxT vu0IZwHrA==; Received: from [93.140.159.232] (port=59728 helo=[192.168.1.9]) by cp007.mydataknox.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1kAzoK-0006Py-7s; Wed, 26 Aug 2020 20:06:15 +0200 To: "G. P. B." , Matteo Beccati Cc: PHP internals References: <08b959f5-7652-5e8a-562a-c2659facec8c@voxdiversa.hr> Message-ID: Date: Wed, 26 Aug 2020 20:06:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------91E3A0B1F6C6D77517705AF3" Content-Language: en-US X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp007.mydataknox.com X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - voxdiversa.hr X-Get-Message-Sender-Via: cp007.mydataknox.com: authenticated_id: dino.pejakovic@voxdiversa.hr X-Authenticated-Sender: cp007.mydataknox.com: dino.pejakovic@voxdiversa.hr X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched X-Brightmail-Tracker: H4sIAAAAAAAAA02Sf0xTVxTHd1/f2kfHc49CwxnK2J4RF9hYhYUQwxybkSnTRP8YiSzKnvat ZfYHa4uDLVmaOoho0bpIAiV0ba0/cITiKqxOQgtNGRINikqqIsrWKOt0hDGmU5l7j1eUf04+ 93zP/d57zr2ESDYsSSMqdCbWoGM0tFiKn1mzoeGtJk9xucLxHV0QvN8tLkLrox3t+GZUJi1U spqK3azh7TWfStUNt9tQpWdl9YwzIDGjxox9KIEA6h0IW0exfUhKyKguDEZsXRJ+gVPnxHDe bkGCYsNgduQCpxBEMrUFLAMv8ZhCfQQTrkLeSERlw8Df07hQ3oPgbuAyzgtiKg9620LzTFJF 0HGpG+P34tQKOB6p4tNyaisED0YkQkkSnGuOzpcncCdN2fqQ4F8KRwY7JQKnwvXo95jQQCb8 2nlMInAZzJ29ii80Nhxujde8CX84LPH8angcao9zLuyvv/eiwNthvyMQ9ymBpkF/PC+FYKND LPDLEGoZRwIvgV5XZzyfDd1PfhPb0DL7ohbsi65tX3RtgfPB4ZsQCZwBe7paOCY4zoRjtfTi tBNJTqJkrUqRm6OtUTImZpdOX52zU6/9EXHPHzxxoMaPav2qfoQRqB+9QmC0nNzqKi6XLdmh V9aoGaO63FClYY39CAgRnUImXVpbLiOVTM1XrEG/IC0lcDqVvPgQbZNRKsbE7mLZStawoC4j CBrIG27ONMnAqtjqzyo0pucyRiTw5omc+dQRroY0VjJaY4VK0IfQe8SZsMMtIqZPerj4YD42 +7gow3V6HZuWSjp5a4rfpq7SPXNe+N4xFEAEopPJfN49kfv9z8xzj3IK1ScB23Angn7nNQz2 umdxeHj7LzHMWn6RwuT5wUQIt9ooGGgYSYafvN+mQGzqdAo0ttXJwXvzlhyazdY0mKvreQ3G ap00WOqvLAff0QsrwB+oXwkH2qzZ4L3zQAGR5j9Xwfgdbx7UH+4ogF6/fzWcjbnfhbGZxiIY OxF5HybHWz6Axz80rIUZr7cYBvd2lEB7X2BjjJsPxs2ntXQdPx8T87yFNDPKSc8+fbHwUdLn nvwvsuje/9yjc3eDrib5I990j+vUx63/vrCp9B9NXdZ655NTnzh/T1ccvFc7oL88FP4yeHzj 0q/Vbm3Jz96ylm8yIbp9NGo3pOsOSw/5ti1/dWLDbtqa7yiwhsyR1zfRsaeiK0N03twbT803 Qh6lYs+H95kM0dVJGjeqmVVZIoOR+R8whB8RYgQAAA== Subject: Re: [PHP-DEV] PDO fetch performance problems with many bind parameters From: dino.pejakovic@voxdiversa.hr (Dino Pejakovic) --------------91E3A0B1F6C6D77517705AF3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit > Just that you are aware the emails from both of you went to my spam folder. Thanks for the info. If anyone has any idea why we went to spam, please let us know. The reason I didn't create a pull request immediately is that I don't have a concrete fix. The diff that I sent just shows where I commented out the lines to confirm this was the problem. PDO_PARAM_EVT_FETCH_POST seems to be used by pdo_firebird so I can't just remove the hooks. Also, pdo_pgsql seems to be processing some kind of INPUT_OUTPUT parameters and parsing postgres bools. This is in a code path that is maybe still used while fetching: |if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_BOOL &&|| ||            ((param->param_type & PDO_PARAM_INPUT_OUTPUT) != PDO_PARAM_INPUT_OUTPUT)) {|| ||            const char *s = zend_is_true(¶m->parameter) ? "t" : "f";|| ||            param->param_type = PDO_PARAM_STR;|| ||            zval_ptr_dtor(¶m->parameter);|| ||            ZVAL_STRINGL(¶m->parameter, s, 1);|| ||        }| I'm not familiar with what this does so I wanted someone more familiar with PDO to see it first. I don't think I can create a useful pull request that doesn't break anything. On 8/26/20 7:28 PM, G. P. B. wrote: > Just that you are aware the emails from both of you went to my spam folder. > > Back to the matter, this is the correct list to email Dino, however could > you > open a pull request on GitHub for this change so that more eyes (and > especially eyes from people which know PDO) can have a look? > > Please provide the relevant information again in the pull request and > possibly host your files on a gist. > > This can still target PHP 8.0 as this seems to be akin to a bug this > might even be applicable to PHP 7.3/7.4. Anyways, good catch. > > Best regards > > George P. Banyard > --------------91E3A0B1F6C6D77517705AF3--