Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24607 invoked from network); 1 May 2011 07:32:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 May 2011 07:32:41 -0000 Authentication-Results: pb1.pair.com header.from=johannes.schlueter@oracle.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes.schlueter@oracle.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.121 cause and error) X-PHP-List-Original-Sender: johannes.schlueter@oracle.com X-Host-Fingerprint: 148.87.113.121 rcsinet10.oracle.com Linux 2.6 Received: from [148.87.113.121] ([148.87.113.121:38609] helo=rcsinet10.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/FE-10915-79C0DBD4 for ; Sun, 01 May 2011 03:32:40 -0400 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p417WYEj022303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 1 May 2011 07:32:36 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p417WXJ1027329 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 1 May 2011 07:32:34 GMT Received: from abhmt019.oracle.com (abhmt019.oracle.com [141.146.116.28]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p417WScL010778; Sun, 1 May 2011 02:32:28 -0500 Received: from [192.168.1.122] (/84.74.136.69) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 01 May 2011 00:32:28 -0700 References: In-Reply-To: Mime-Version: 1.0 (iPod Mail 8H7) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-ID: <05C24951-0115-411C-89AA-E599D80EC6FF@oracle.com> Cc: "internals@lists.php.net" X-Mailer: iPod Mail (8H7) Date: Sun, 1 May 2011 09:32:29 +0200 To: Anthony Ferrara X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090201.4DBD0C94.0024:SCFMA922111,ss=1,fgs=0 Subject: Re: [PHP-DEV] Change Request: Make PDO default to not emulate prepared statements for MySQL From: johannes.schlueter@oracle.com (=?utf-8?Q?Johannes_Schl=C3=BCter?=) Hi, On Apr 30, 2011, at 17:13, Anthony Ferrara wrote: > I have already reported this issue on the bug tracker: > http://bugs.php.net/bug.php?id=3D54638 Besides the question about query cache and security there is a bit more to k= eep in mind: Using native prepared statements means one more round-trip between PHP and M= ySQL which might impact performance. This is even more relevant as PDO::quer= y will go through the PS API ... While PS uses a more compact binary protoco= l. Also there are still a few (minor) statements which can't be prepared in MyS= QL where PDO will silently fall back silently to emulation. (don't have the l= ist at hand, but should be in the docs) Also mind that native PS still runs through PDO's SQL parser to handle place= holder so it won't solve all issues in there.=20 johannes=