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

WordPress Trac noreply at wordpress.org
Sun Apr 20 08:05:17 UTC 2014


#27933: MYSQL_NEW_LINK constant is not honored with MySQLi
--------------------------+-----------------------------
 Reporter:  doublesharp   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Database      |    Version:  3.9
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Using WordPress 3.9 and PHP5.5, the MySQLi extension is used in lieu of
 the deprecated `mysql_*` extensions, however the `MYSQL_NEW_LINK` constant
 is not honored. When this constant is set to `false` it would cause the
 `$new_link` passed to [`mysql_connect()`](http://us2.php.net/function
 .mysql-connect) to indicate that an already opened link should be
 returned.

 For MySQLi this is accomplishing by prepending a `p:` to the hostname -
 see details on [''The mysqli Extension and Persistent
 Connections''](http://www.php.net/manual/en/mysqli.persistconns.php) page.
 Dynamically prepending `p:` to the `$host` based on the value of
 `MYSQL_NEW_LINK` to maintain compatibility would be ideal.

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


More information about the wp-trac mailing list