File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -844,9 +844,6 @@ static PHP_INI_MH(OnUpdate_mbstring_internal_encoding)
844
844
/* {{{ static PHP_INI_MH(OnUpdate_mbstring_substitute_character) */
845
845
static PHP_INI_MH (OnUpdate_mbstring_substitute_character )
846
846
{
847
- int c ;
848
- char * endptr = NULL ;
849
-
850
847
if (new_value != NULL ) {
851
848
if (zend_string_equals_literal_ci (new_value , "none" )) {
852
849
MBSTRG (filter_illegal_mode ) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE ;
@@ -861,7 +858,9 @@ static PHP_INI_MH(OnUpdate_mbstring_substitute_character)
861
858
MBSTRG (filter_illegal_mode ) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR ;
862
859
MBSTRG (current_filter_illegal_mode ) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR ;
863
860
if (ZSTR_LEN (new_value ) > 0 ) {
864
- c = strtol (ZSTR_VAL (new_value ), & endptr , 0 );
861
+ char * endptr = NULL ;
862
+ int c = strtol (ZSTR_VAL (new_value ), & endptr , 0 );
863
+
865
864
if (* endptr == '\0' ) {
866
865
MBSTRG (filter_illegal_substchar ) = c ;
867
866
MBSTRG (current_filter_illegal_substchar ) = c ;
You can’t perform that action at this time.
0 commit comments