File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -840,9 +840,6 @@ static PHP_INI_MH(OnUpdate_mbstring_internal_encoding)
840
840
/* {{{ static PHP_INI_MH(OnUpdate_mbstring_substitute_character) */
841
841
static PHP_INI_MH (OnUpdate_mbstring_substitute_character )
842
842
{
843
- int c ;
844
- char * endptr = NULL ;
845
-
846
843
if (new_value != NULL ) {
847
844
if (zend_string_equals_literal_ci (new_value , "none" )) {
848
845
MBSTRG (filter_illegal_mode ) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_NONE ;
@@ -857,6 +854,9 @@ static PHP_INI_MH(OnUpdate_mbstring_substitute_character)
857
854
MBSTRG (filter_illegal_mode ) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR ;
858
855
MBSTRG (current_filter_illegal_mode ) = MBFL_OUTPUTFILTER_ILLEGAL_MODE_CHAR ;
859
856
if (ZSTR_LEN (new_value ) > 0 ) {
857
+ int c ;
858
+ char * endptr = NULL ;
859
+
860
860
c = strtol (ZSTR_VAL (new_value ), & endptr , 0 );
861
861
if (* endptr == '\0' ) {
862
862
MBSTRG (filter_illegal_substchar ) = c ;
You can’t perform that action at this time.
0 commit comments