cvs: php-src /ext/pdo_mysql/tests mysql_pdo_test.inc
| From: | Johannes Schlüter | Date: | Sun, 19 Oct 2008 12:43:10 +0000 |
| Subject: | cvs: php-src /ext/pdo_mysql/tests mysql_pdo_test.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-53585@lists.php.net to get a copy of this message | ||
johannes Sun Oct 19 12:43:10 2008 UTC
Modified files:
/php-src/ext/pdo_mysql/tests mysql_pdo_test.inc
Log:
fix mysqlnd detection
http://cvs.php.net/viewvc.cgi/php-src/ext/pdo_mysql/tests/mysql_pdo_test.inc?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/pdo_mysql/tests/mysql_pdo_test.inc
diff -u php-src/ext/pdo_mysql/tests/mysql_pdo_test.inc:1.1
php-src/ext/pdo_mysql/tests/mysql_pdo_test.inc:1.2
--- php-src/ext/pdo_mysql/tests/mysql_pdo_test.inc:1.1 Mon Jul 21 13:05:51 2008
+++ php-src/ext/pdo_mysql/tests/mysql_pdo_test.inc Sun Oct 19 12:43:10 2008
@@ -155,7 +155,7 @@
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);
}
}