Fix #80115: mysqlnd.debug doesn't recognize absolute paths with slashes

This commit is contained in:
Christoph M. Becker 2020-09-17 12:37:02 +02:00
parent 1aab7db6c8
commit efdbc3688b
2 changed files with 5 additions and 1 deletions

View file

@ -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