Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113306 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 55654 invoked from network); 27 Feb 2021 16:40:17 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 27 Feb 2021 16:40:17 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D009A1804D1 for ; Sat, 27 Feb 2021 08:29:48 -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,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 27 Feb 2021 08:29:48 -0800 (PST) Received: by mail-wm1-f41.google.com with SMTP id x16so9777921wmk.3 for ; Sat, 27 Feb 2021 08:29:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=oX73JZbqu/UWcsK9R59M1H1gSmYEpCuNHrrDcn7beLs=; b=kM7vArdqwGlmWM9VFuVUIXEIsxQLxaQ6v4Qgq/c0YqANux9cEPFovnKi17up0b/GGb WBxI8TibstsJd4KB9io8ClOab7AOAlxVN6H0r3XFjYxb/fDk7csaio5QvU1FDQMkkhSW 1T+djokV8z+1/AZsS9LX3gaUW5h6J5y6KcVwYPxoqDNbRbQzBTddhFCJI+gRQaug2WO8 wJGac6V7KCBZa+U2Huai65dUHPOZS21IDZaTM2JJQasVib6m8N481TJ4H+BRp0SmWr5O 98WXf2pbslZyXWOfEkpR+Rxqk6wpf9sRQ7zYuA1cB1dRQRXiyFe3d7qyQDRUZHHGkOfA Lrbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=oX73JZbqu/UWcsK9R59M1H1gSmYEpCuNHrrDcn7beLs=; b=O6Gt8tMOFOpCURmvahrQvJHyvyOZmXM6ks8Q4NPSa6aqdHQNPFRpHtkZeC8QC3muvu p2zkg9Bu6he75uHZvnB6X73ET2TeFZGsSI+OzpxK8bKXnQ/ZGincRX58OFZ+nmHePjzH St9TfSIodh3CbnPI2dV6j8Y6YxJMNBmodiEhpw+ReoAzVYNc8Dgp2/dVEex05qxg5CZz 0xs0sfTeejqZhgXE+Cq0jkeV20caqtZWZI85oDHutboeccedixd8SE97B1c4CEduJfO/ 2ryhh1stULq3IbQdbKShNrKYPOvr+BJ/WldaW7XDeaikVOIkXcbOjASLstIBsxkgAHGL 3r/g== X-Gm-Message-State: AOAM532pLT4fxjkh0GWzZUXXD+mipJAuude6s5FfIeCo59Mn4bKu/o9p a+EEUS3sNifWBBDvTI/A/QFUYe+ounk= X-Google-Smtp-Source: ABdhPJxC9ighYD/E3/NSa7VNwtkUOmW94NKFUvSQBA3nSsA6rXI4gwJSw2GEJYb8B1uzj/GjP/8XNg== X-Received: by 2002:a7b:c442:: with SMTP id l2mr8000963wmi.69.1614443385684; Sat, 27 Feb 2021 08:29:45 -0800 (PST) Received: from [192.168.0.22] (cpc104104-brig22-2-0-cust548.3-3.cable.virginm.net. [82.10.58.37]) by smtp.googlemail.com with ESMTPSA id r20sm16185734wmd.18.2021.02.27.08.29.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 27 Feb 2021 08:29:45 -0800 (PST) To: internals@lists.php.net References: <499c2591-fb11-1b9d-d402-39f7ec1c6b85@themad.com.au> <6EC89E9A-035D-4D2B-97D7-845DC4FF3E32@koalephant.com> <347e565f-f90a-5fc6-efcf-e28856ad00dc@gmail.com> <23cf71d2-4fed-ceab-6c63-c826af01bb36@processus.org> Message-ID: <06b75517-ecdd-c409-e6ca-3a7ed14fb628@gmail.com> Date: Sat, 27 Feb 2021 16:29:42 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <23cf71d2-4fed-ceab-6c63-c826af01bb36@processus.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Subject: Re: [PHP-DEV] PDO integer changes in 8.1 will stop many websites I support From: rowan.collins@gmail.com (Rowan Tommins) On 27/02/2021 15:51, Pierre wrote: > Yes, but PDOStatement::execute() explicitly documents that it can be > used only for prepared queries. The same is true of bindParam and bindValue - the only way of using parameters is to first "prepare" a query. Whether that's a real prepare (on the database server) or an emulated prepare doesn't make any difference, as far as I know. > I'm not sure it requires two round trips when you use prepare() along > with emulated prepare indeed, that was my point: currently, the only way to avoid the extra round-trip is emulated prepares, which means you don't get the full security of parameterised queries. > It's sad PDO doesn't have a pg_query_params() equivalent method, most > people would stop using prepare() if that was the case. Agreed. :) Although it would also require people to stop using the term "prepared query" to mean "parameterised query", which I see a lot. Regards, -- Rowan Tommins [IMSoP]