wpmudev / multi-db

Allows you to partition your large WordPress Multisite database across multiple servers for scalability.
GNU General Public License v2.0
90 stars 64 forks source link

PHP7 Compat #4

Closed sybrew closed 8 years ago

sybrew commented 8 years ago

Hi!

https://github.com/wpmudev/multi-db/blob/master/db.php#L238-L239 has functions that don't exist anymore in PHP7.

Please consider using /wp-includes/wp-db.php's functions to determine the use of mysql_connect() and mysqli_connect(). This would make the migration to PHP7 much easier :).

Thanks and have a great day!

uglyrobot commented 8 years ago

See the https://github.com/wpmudev/multi-db/tree/mysqli-merge branch. Not merged yet because of lack of testing, which you are welcome todo!

sybrew commented 8 years ago

Thanks Aaron, I'll get to it in May :+1: