[wp-trac] [WordPress Trac] #27933: MYSQL_NEW_LINK constant is not honored with MySQLi
WordPress Trac
noreply at wordpress.org
Wed Apr 23 02:31:48 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: needs-refresh | Focuses:
---------------------------+--------------------
Changes (by pento):
* keywords: has-patch needs-docs => needs-refresh
Comment:
Well, today has been a day for digging through PHP source.
Nacin is correct, `new_link = false` is different to `mysql_pconnect()`,
and mysqli's `p:` notation is the equivalent of `mysql_pconnect()`.
`new_link = false` is for forcing subsequent calls of `mysql_connect()`,
in the same process, to use an established link that matches the connect
parameters of that call. mysqli doesn't have an equivalent to this.
With that in mind, attachment:wp-db.php.4.patch is unfortunately the
incorrect solution for this problem - instead, `MYSQL_NEW_LINK` is
deprecated for use with mysqli, as of 3.9.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27933#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list