From: Andrey Hristov Date: Tue, 11 May 2010 15:55:07 +0000 (+0000) Subject: One more time fixing the tests, lets use $IS_MYSQLND which comes from connect.inc X-Git-Tag: php-5.3.3RC1~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d3b7aaa3fc9bf0b4e8c7807e4586569b3f52b799;p=php One more time fixing the tests, lets use $IS_MYSQLND which comes from connect.inc --- diff --git a/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_long.phpt b/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_long.phpt index 8b5e7d6a48..fcbf4e652e 100644 --- a/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_long.phpt +++ b/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_long.phpt @@ -6,7 +6,7 @@ require_once('skipif.inc'); require_once('skipifemb.inc'); require_once('skipifconnectfailure.inc'); -if (!stristr(mysqli_get_client_info(), 'mysqlnd')) { +if (!$IS_MYSQLND) { die("skip: test applies only to mysqlnd"); } diff --git a/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_zero.phpt b/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_zero.phpt index dd34d7da62..eb4c431e7d 100644 --- a/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_zero.phpt +++ b/ext/mysqli/tests/mysqli_mysqlnd_read_timeout_zero.phpt @@ -6,7 +6,7 @@ require_once('skipif.inc'); require_once('skipifemb.inc'); require_once('skipifconnectfailure.inc'); -if (!stristr(mysqli_get_client_info(), 'mysqlnd')) { +if (!$IS_MYSQLND) { die("skip: test applies only to mysqlnd"); }