Skip to content

Commit ba3d68c

Browse files
committed
Drop '#if 0' in mysqlnd_debug() from the MySQLnd extension
1 parent f717ec6 commit ba3d68c

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ext/mysqlnd/mysqlnd_debug.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -543,11 +543,9 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
543543
state = PARSER_WAIT_COLON;
544544
break;
545545
case ':':
546-
#if 0
547546
if (state != PARSER_WAIT_COLON) {
548547
php_error_docref(NULL, E_WARNING, "Consecutive semicolons at position %u", i);
549548
}
550-
#endif
551549
state = PARSER_WAIT_MODIFIER;
552550
break;
553551
case 'f': /* limit output to these functions */
@@ -581,10 +579,8 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
581579
}
582580
i = j;
583581
} else {
584-
#if 0
585582
php_error_docref(NULL, E_WARNING,
586583
"Expected list of functions for '%c' found none", mode[i]);
587-
#endif
588584
}
589585
state = PARSER_WAIT_COLON;
590586
break;
@@ -661,9 +657,7 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
661657
break;
662658
default:
663659
if (state == PARSER_WAIT_MODIFIER) {
664-
#if 0
665660
php_error_docref(NULL, E_WARNING, "Unrecognized format '%c'", mode[i]);
666-
#endif
667661
if (i+1 < mode_len && mode[i+1] == ',') {
668662
i+= 2;
669663
while (i < mode_len) {
@@ -675,9 +669,7 @@ MYSQLND_METHOD(mysqlnd_debug, set_mode)(MYSQLND_DEBUG * self, const char * const
675669
}
676670
state = PARSER_WAIT_COLON;
677671
} else if (state == PARSER_WAIT_COLON) {
678-
#if 0
679672
php_error_docref(NULL, E_WARNING, "Colon expected, '%c' found", mode[i]);
680-
#endif
681673
}
682674
break;
683675
}

0 commit comments

Comments
 (0)