From efdbc3688bd9c72f3f4d7785ff491377366fe5f5 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Thu, 17 Sep 2020 12:37:02 +0200 Subject: Fix #80115: mysqlnd.debug doesn't recognize absolute paths with slashes --- ext/mysqlnd/mysqlnd_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mysqlnd/mysqlnd_debug.c') diff --git a/ext/mysqlnd/mysqlnd_debug.c b/ext/mysqlnd/mysqlnd_debug.c index 409097a559..17b1d1ac48 100644 --- a/ext/mysqlnd/mysqlnd_debug.c +++ b/ext/mysqlnd/mysqlnd_debug.c @@ -524,7 +524,7 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const if (i + 1 < mode_len && mode[i+1] == ',') { unsigned int j = i + 2; #ifdef PHP_WIN32 - if (i+4 < mode_len && mode[i+3] == ':' && (mode[i+4] == '\\' || mode[i+5] == '/')) { + if (i+4 < mode_len && mode[i+3] == ':' && (mode[i+4] == '\\' || mode[i+4] == '/')) { j = i + 5; } #endif -- cgit v1.2.1