summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/mysqli_debug_ini.phpt
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-03-18 16:58:43 +0000
committerAndrey Hristov <andrey@php.net>2008-03-18 16:58:43 +0000
commite53f44b9bd98c11517f52b737ed220f4521c0871 (patch)
tree3fc6f8172a86c2aa9fadc47112ed4b01d6c688e4 /ext/mysqli/tests/mysqli_debug_ini.phpt
parentda591e8eca232ee7541bbb1dbf5c3be6f32ba284 (diff)
downloadphp-git-e53f44b9bd98c11517f52b737ed220f4521c0871.tar.gz
MFB - Bug #44352 mysqli_connect_error() false negative for host errors
Diffstat (limited to 'ext/mysqli/tests/mysqli_debug_ini.phpt')
-rw-r--r--ext/mysqli/tests/mysqli_debug_ini.phpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/mysqli/tests/mysqli_debug_ini.phpt b/ext/mysqli/tests/mysqli_debug_ini.phpt
index 2d1bb08a8e..7a94b40226 100644
--- a/ext/mysqli/tests/mysqli_debug_ini.phpt
+++ b/ext/mysqli/tests/mysqli_debug_ini.phpt
@@ -8,6 +8,12 @@ require_once('skipifemb.inc');
if (!function_exists('mysqli_debug'))
die("skip mysqli_debug() not available");
+if (!defined('MYSQLI_DEGBUG_TRACE_ENABLED'))
+ die("skip: can't say for sure if mysqli_debug works");
+
+if (defined('MYSQLI_DEBUG_TRACE_ENABLED') && !MYSQLI_DEBUG_TRACE_ENABLED)
+ die("skip: debug functionality not enabled");
+
require_once('connect.inc');
if (!$IS_MYSQLND || ($MYSQLND_VERSION < 940))
die("skip needs mysqlnd version/revision 940+");