[wp-trac] [WordPress Trac] #42352: Support use of native MySQLi prepared queries
WordPress Trac
noreply at wordpress.org
Tue Dec 12 06:48:34 UTC 2017
#42352: Support use of native MySQLi prepared queries
-------------------------+-----------------------------
Reporter: dd32 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Database | Version:
Severity: normal | Resolution:
Keywords: early | Focuses:
-------------------------+-----------------------------
Changes (by dd32):
* milestone: Awaiting Review => Future Release
Comment:
[attachment:42352.3.diff] probably wasn't actually the version I intended
to upload here. Either way, the patches continued in
https://github.com/dd32/wordpress-develop/tree/add-native-sql-
prepare-42352 - I've experimented with a few things and making a few
dangerous decisions that may not actually be merged into core (But it's
Git, so those commits/methods can be removed)
> If we drop our entirely-cautious MySQLi for PHP 5.5+ only, MySQL for PHP
5.2~5.4 checks and use MySQLi when available we'd probably be able to get
native prepares to be available for ~90% of sites rather than the above
70-80% too.
See #42812
I'm marking this as `Future Release` as it's likely we'll move to real
prepared queries, but until we have a solid way of handling back-compat
for `mysql_*` clients we're kind of stuck.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42352#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list