diff options
author | Johannes Schlüter <johannes@php.net> | 2008-10-19 12:43:34 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2008-10-19 12:43:34 +0000 |
commit | c8361e7cfef697192fa5f96e03e0f30d5a8e159d (patch) | |
tree | 6f5d74575d79db257952d751e8ffc20a03f919a5 | |
parent | c3dab8f19116a01488e91eaa411772b2e878317a (diff) | |
download | php-git-c8361e7cfef697192fa5f96e03e0f30d5a8e159d.tar.gz |
MFH: fix mysqlnd detection
-rw-r--r-- | ext/pdo_mysql/tests/mysql_pdo_test.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |