[wp-trac] [WordPress Trac] #3293: Bypassing mysql library check for mysqli usage

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 28 18:27:10 GMT 2006


#3293: Bypassing mysql library check for mysqli usage
----------------------------+-----------------------------------------------
 Reporter:  morpheu5        |       Owner:  masquerade
     Type:  defect          |      Status:  new       
 Priority:  normal          |   Milestone:            
Component:  Administration  |     Version:  2.0.4     
 Severity:  normal          |    Keywords:            
----------------------------+-----------------------------------------------
 As suggested by masquerade in http://trac.wordpress.org/ticket/3292 I'm
 proposing this workaround that checks for mysql or mysqli library loaded.
 I've converted the WP code to mysqli as suggested by
 http://forge.mysql.com/wiki/Converting_to_MySQLi and it works. I guess
 this is not a matter of saying "we don't use it, we don't care" because my
 experience is that if a technology is intended to replace an older one, it
 *must* be taken in account *even if* you actually don't use it. It's
 called "flexibility" in the real world, I guess...

 Workaround:

 /wp-settings.php row 53

 if ( !extension_loaded('mysqli') and !extension_loaded('mysql') )

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3293>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list