[wp-trac] [WordPress Trac] #21663: Use PDO or mysqli for MySQL queries when available
WordPress Trac
noreply at wordpress.org
Tue Feb 25 16:30:37 UTC 2014
#21663: Use PDO or mysqli for MySQL queries when available
------------------------------+------------------
Reporter: scottconnerly | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.9
Component: Database | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+------------------
Comment (by AzizSaleh):
Replying to [ticket:21663 scottconnerly]:
> the mysql_* functions are officially deprecated for PHP 5.4 and will
begin throwing E_DEPRECATED errors in the next version of PHP.
> http://marc.info/?l=php-internals&m=131031747409271&w=2
>
> Wordpress should use PDO by default, but fall back to mysql_* when PDO
is not present.
>
> See also: #11622 for last year's discussion.
I have created a PDO backend for mysql_* functions for exiting old
projects which I didn't want to have to go through the code, update, and
re-test:
https://github.com/AzizSaleh/mysql
Hopefully it helps someone else.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:201>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list