Re: PDO: Disable emulated prepares by default?

From: Date: Thu, 03 Sep 2015 11:25:19 +0000
Subject: Re: PDO: Disable emulated prepares by default?
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-88033@lists.php.net to get a copy of this message
On Thu, Sep 3, 2015 at 8:33 AM, Ferenc Kovacs <tyra3l@gmail.com> wrote: > > 2015. szept. 3. 6:14 ezt írta ("Scott Arciszewski" <scott@paragonie.com>): > > > > 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 > > <https://paragonie.com> > > > > -- > > 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) > for the record, here is the last discussion on the topic: http://grokbase.com/t/php/php-internals/126fcmvv04/patch-pr-disable-attr-emulate-prepares-by-default-for-pdo-mysql -- Ferenc Kovács @Tyr43l - http://tyrael.hu

« previous php.internals (#88033) next »