MFH: fix mysqlnd detection

This commit is contained in:
Johannes Schlüter 2008-10-19 12:43:34 +00:00
parent c3dab8f191
commit c8361e7cfe

View file

@ -155,7 +155,7 @@ class MySQLPDOTest extends PDOTest {
phpinfo(); phpinfo();
$tmp = ob_get_contents(); $tmp = ob_get_contents();
ob_end_clean(); ob_end_clean();
return (true == stristr($tmp, 'PDO Driver for MySQL, mysql native driver version')); return (bool)preg_match('/Client API version.*mysqlnd/', $tmp);
} }
} }