mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Drop '#if 0' in mysqlnd_debug() from the MySQLnd extension
Closes GH-5587
This commit is contained in:
parent
8bc505cf47
commit
c74001997f
2 changed files with 57 additions and 8 deletions
|
@ -543,11 +543,9 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
|
|||
state = PARSER_WAIT_COLON;
|
||||
break;
|
||||
case ':':
|
||||
#if 0
|
||||
if (state != PARSER_WAIT_COLON) {
|
||||
php_error_docref(NULL, E_WARNING, "Consecutive semicolons at position %u", i);
|
||||
}
|
||||
#endif
|
||||
state = PARSER_WAIT_MODIFIER;
|
||||
break;
|
||||
case 'f': /* limit output to these functions */
|
||||
|
@ -581,10 +579,8 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
|
|||
}
|
||||
i = j;
|
||||
} else {
|
||||
#if 0
|
||||
php_error_docref(NULL, E_WARNING,
|
||||
"Expected list of functions for '%c' found none", mode[i]);
|
||||
#endif
|
||||
}
|
||||
state = PARSER_WAIT_COLON;
|
||||
break;
|
||||
|
@ -661,9 +657,7 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
|
|||
break;
|
||||
default:
|
||||
if (state == PARSER_WAIT_MODIFIER) {
|
||||
#if 0
|
||||
php_error_docref(NULL, E_WARNING, "Unrecognized format '%c'", mode[i]);
|
||||
#endif
|
||||
if (i+1 < mode_len && mode[i+1] == ',') {
|
||||
i+= 2;
|
||||
while (i < mode_len) {
|
||||
|
@ -675,9 +669,7 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
|
|||
}
|
||||
state = PARSER_WAIT_COLON;
|
||||
} else if (state == PARSER_WAIT_COLON) {
|
||||
#if 0
|
||||
php_error_docref(NULL, E_WARNING, "Colon expected, '%c' found", mode[i]);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue