]> granicus.if.org Git - php/commitdiff
fix mysqlnd detection
authorJohannes Schlüter <johannes@php.net>
Sun, 19 Oct 2008 12:43:10 +0000 (12:43 +0000)
committerJohannes Schlüter <johannes@php.net>
Sun, 19 Oct 2008 12:43:10 +0000 (12:43 +0000)
ext/pdo_mysql/tests/mysql_pdo_test.inc

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