Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88021 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68739 invoked from network); 3 Sep 2015 06:33:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2015 06:33:51 -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.173 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.212.173 mail-wi0-f173.google.com Received: from [209.85.212.173] ([209.85.212.173:34305] helo=mail-wi0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 25/B2-53181-DC9E7E55 for ; Thu, 03 Sep 2015 02:33:49 -0400 Received: by wicfx3 with SMTP id fx3so8365394wic.1 for ; Wed, 02 Sep 2015 23:33:46 -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=+EYCISs2UYS5b2A6f+0Q8fuRHvuh4RpMWYpffSGMbcA=; b=TffavMGHoiPEQwNyGi4KeUKtrsewGZVoGzu8cO86Onh2+QcapgrzdYf8oNnqTKsyYS 0OpNvsomw6YCx50mV+uu/nHZrbxEYdBXUpyg2xx5tBCtudWFuht9QFwSlouzwcD9O4or ro4c3XTj2Y8FZP37RRKX4tNaHntdN3pN7i2B9r/jn98jcrq7bcQMkoTTnuOKozA/DR9D UY4gk0Z7fCphfKAw/pklXbo3rCGqLf7fszx78ouXCAZ2Tt+fkGs7YhZ4c5k0bfKVH9fS 4iLq3d00gsMwusKKOqN/ExGZDAW5nik6N1botsXJRaVsVIBkWFimUim8eN2S3XEuciEZ +R9A== MIME-Version: 1.0 X-Received: by 10.180.186.34 with SMTP id fh2mr11650416wic.94.1441262026489; Wed, 02 Sep 2015 23:33:46 -0700 (PDT) Received: by 10.28.180.85 with HTTP; Wed, 2 Sep 2015 23:33:45 -0700 (PDT) Received: by 10.28.180.85 with HTTP; Wed, 2 Sep 2015 23:33:45 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Sep 2015 08:33:45 +0200 Message-ID: To: Scott Arciszewski , Anthony Ferrara , Rasmus Lerdorf Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c2630a1e0731051ed1f709 Subject: Re: [PHP-DEV] PDO: Disable emulated prepares by default? From: tyra3l@gmail.com (Ferenc Kovacs) --001a11c2630a1e0731051ed1f709 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 place. 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 executing the same prepared query multiple times) --001a11c2630a1e0731051ed1f709--