From: Ulf Wendel Date: Tue, 26 Jul 2011 09:30:49 +0000 (+0000) Subject: Fix mysqlnd detection X-Git-Tag: php-5.4.0alpha3~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41c94d26a49f34d8912276ba9c27000b772b3088;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 a3ffd5b9cc..0af2e6df65 100644 --- a/ext/pdo_mysql/tests/mysql_pdo_test.inc +++ b/ext/pdo_mysql/tests/mysql_pdo_test.inc @@ -155,6 +155,7 @@ class MySQLPDOTest extends PDOTest { phpinfo(); $tmp = ob_get_contents(); ob_end_clean(); + $tmp = stristr($tmp, "PDO Driver for MySQL => enabled"); return (bool)preg_match('/Client API version.*mysqlnd/', $tmp); }