Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88035 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9384 invoked from network); 3 Sep 2015 12:19:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Sep 2015 12:19:18 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 217.147.176.214 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 217.147.176.214 mail4-2.serversure.net Linux 2.6 Received: from [217.147.176.214] ([217.147.176.214:34560] helo=mail4.serversure.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AF/31-34192-3CA38E55 for ; Thu, 03 Sep 2015 08:19:16 -0400 Received: (qmail 9124 invoked by uid 89); 3 Sep 2015 12:19:13 -0000 Received: by simscan 1.3.1 ppid: 9114, pid: 9121, t: 0.1760s scanners: attach: 1.3.1 clamav: 0.96/m:52/d:10677 Received: from unknown (HELO ?10.0.0.8?) (lester@rainbowdigitalmedia.org.uk@81.157.60.12) by mail4.serversure.net with ESMTPA; 3 Sep 2015 12:19:12 -0000 To: internals@lists.php.net References: Message-ID: <55E83AC0.3090207@lsces.co.uk> Date: Thu, 3 Sep 2015 13:19:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PDO: Disable emulated prepares by default? From: lester@lsces.co.uk (Lester Caine) On 03/09/15 12:25, Ferenc Kovacs wrote: >> 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 And the information on just how each database handles the various abstractions of place holders is still missing. While the current proposal is framed as only effecting the pdo_mysql driver, if the default way this is handled then affects what IS currently working cross-database then it does have a much wider impact? That PDO is simply not up to the job it was originally pushed to provide is a fact and making it work just for one database begs the question "why keep it". Testing with a generic set of code should work identically across all supported databases and that does mean that some level of emulation is required but currently there is no documentation on just what does and what does not work. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk