Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88033 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2824 invoked from network); 3 Sep 2015 11:25:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2015 11:25:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.169 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.212.169 mail-wi0-f169.google.com Received: from [209.85.212.169] ([209.85.212.169:37259] helo=mail-wi0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/40-34192-12E28E55 for ; Thu, 03 Sep 2015 07:25:22 -0400 Received: by wicfx3 with SMTP id fx3so48567969wic.0 for ; Thu, 03 Sep 2015 04:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=uuDgBR/H5UscLNzo9AmAGkWGiVa9g1Rko0saDKyJxLs=; b=Nk/VfqrFcQRcdKgJLO1ivyt2seU7VQBGQtX0GXGm0mUey01r/jdcZD5U862pNVbkRt 1LFG43MqB8+n2oKzjgE46/f5wd8eMIDpCvXoybMMr0v9UK+jK+PC3/iqLCmd+reDXzM2 TVpjEEBvQ6YYh5+keREv7BXzhM70EWAIXkG/u/Rm4HrZWz0vZZhBLoUEUQZf4VkNlIFd EwPQf2xv07xIrNfMFIzWnaEBSWn5o62e67GxAL93rWI7uIf7rYYAaIOV1xqhbBaJPwyT Ow3ly57Bk3WECuzOX63rLJBXFVPBfDDuEia5HUPQh/d5O4Ehtz6P94/l9wRTF7DnXOKT 87kw== MIME-Version: 1.0 X-Received: by 10.180.74.52 with SMTP id q20mr13980971wiv.94.1441279519277; Thu, 03 Sep 2015 04:25:19 -0700 (PDT) Received: by 10.28.180.85 with HTTP; Thu, 3 Sep 2015 04:25:19 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Sep 2015 13:25:19 +0200 Message-ID: To: Scott Arciszewski , Anthony Ferrara , Rasmus Lerdorf Cc: PHP Internals Content-Type: multipart/alternative; boundary=f46d04389079c4caad051ed60993 Subject: Re: [PHP-DEV] PDO: Disable emulated prepares by default? From: tyra3l@gmail.com (Ferenc Kovacs) --f46d04389079c4caad051ed60993 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Sep 3, 2015 at 8:33 AM, Ferenc Kovacs wrote: > > 2015. szept. 3. 6:14 ezt =C3=ADrta ("Scott Arciszewski" ): > > > > Inspired by http://stackoverflow.com/a/12202218/2224584 > > > > Can we (in either PHP 7.0 or in PHP 7.1) turn emulated prepared > > statements off by default, and still allow developers to turn it on if > > they really want them? > > > > For now my code works around this design decision, but not everybody > > is cognizant of this behavior. > > > > Scott Arciszewski > > Chief Development Officer > > Paragon Initiative Enterprises > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > Last time we discussed this it was Anthony who proposed the change and > Rasmus shed some light on why did we have the emulation in the first plac= e. > We can have change the default but we should have an RFC clearly stating > the impact (an additional network roundtrip and the native prepares being > less flexible vs. better security and performance gain in case of executi= ng > the same prepared query multiple times) > for the record, here is the last discussion on the topic: http://grokbase.com/t/php/php-internals/126fcmvv04/patch-pr-disable-attr-em= ulate-prepares-by-default-for-pdo-mysql --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --f46d04389079c4caad051ed60993--