mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
cvs sync
This commit is contained in:
parent
80861c001e
commit
cf07e941f1
6 changed files with 35 additions and 7 deletions
|
@ -433,7 +433,8 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
|
|||
}
|
||||
i = j;
|
||||
} else {
|
||||
self->file_name = (char *) mysqlnd_debug_default_trace_file;
|
||||
if (!self->file_name)
|
||||
self->file_name = (char *) mysqlnd_debug_default_trace_file;
|
||||
}
|
||||
state = PARSER_WAIT_COLON;
|
||||
break;
|
||||
|
@ -491,9 +492,10 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
|
|||
if ((i + 1) < mode_len && mode[i+1] == ',') {
|
||||
i+= 2;
|
||||
while (i < mode_len) {
|
||||
if (mode[i++] == ':') {
|
||||
if (mode[i] == ':') {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
state = PARSER_WAIT_COLON;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue