[wp-trac] [WordPress Trac] #27933: MYSQL_NEW_LINK constant is not honored with MySQLi

WordPress Trac noreply at wordpress.org
Sun Apr 20 12:47:22 UTC 2014


#27933: MYSQL_NEW_LINK constant is not honored with MySQLi
--------------------------+--------------------
 Reporter:  doublesharp   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9.1
Component:  Database      |     Version:  3.9
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------
Changes (by pento):

 * keywords:   => has-patch


Comment:

 Nice find. :-)

 I like where you're going with this patch, but it also needs to do a PHP
 version check. The `p:` syntax was introduced in PHP 5.3, but WordPress
 still supports PHP 5.2.

 Also, a minor coding standard thing - there's no need to use the curly
 brackets in `"p:{$host}"`.

 I'm okay with PHP 5.2 users who've deliberately forced mysqli to be used
 to not have persistent connections.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27933#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list