[wp-trac] [WordPress Trac] #11622: switch to PDO::prepare when we require PHP 5.1
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 30 20:39:35 UTC 2011
#11622: switch to PDO::prepare when we require PHP 5.1
-------------------------+----------------------
Reporter: sirzooro | Owner: ryan
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Database | Version:
Severity: normal | Resolution: wontfix
Keywords: |
-------------------------+----------------------
Comment (by Denis-de-Bernardy):
Replying to [comment:19 scribu]:
> Problems with using [http://www.php.net/manual/en/pdo.prepare.php
PDO:prepare()]:
>
> * requires a round-trip to the DB (this alone is a deal breaker)
Not when you emulate the prepares (PDO::ATTR_EMULATE_PREPARES, see
http://php.net/manual/en/pdo.setattribute.php).
> * is a PHP extension (i.e. not guaranteed to be installed)
It is always installed in PHP 5.2
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11622#comment:20>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list