Skip to content

Commit 361d654

Browse files
committed
fix php_mb_populate_current_detect_order_list is called twice
1 parent a387239 commit 361d654

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/mbstring/mbstring.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,9 @@ static PHP_INI_MH(OnUpdate_mbstring_detect_order)
719719
MBSTRG(detect_order_list) = list;
720720
MBSTRG(detect_order_list_size) = size;
721721

722-
php_mb_populate_current_detect_order_list();
722+
if (stage == PHP_INI_STAGE_RUNTIME) {
723+
php_mb_populate_current_detect_order_list();
724+
}
723725

724726
return SUCCESS;
725727
}

0 commit comments

Comments
 (0)