From: Johannes Schlüter Date: Sun, 19 Oct 2008 12:43:10 +0000 (+0000) Subject: fix mysqlnd detection X-Git-Tag: BEFORE_HEAD_NS_CHANGE~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d106560958bf41c315b3797aab11bb098a0a78d7;p=php fix mysqlnd detection --- diff --git a/ext/pdo_mysql/tests/mysql_pdo_test.inc b/ext/pdo_mysql/tests/mysql_pdo_test.inc index bf5f49db56..aa98d1464a 100644 --- a/ext/pdo_mysql/tests/mysql_pdo_test.inc +++ b/ext/pdo_mysql/tests/mysql_pdo_test.inc @@ -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); } }