Skip to content

Commit 22d2a80

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Reset MBREX(search_re) in RSHUTDOWN
2 parents b8d635c + 085371b commit 22d2a80

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/mbstring/php_mbregex.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ PHP_RSHUTDOWN_FUNCTION(mb_regex)
154154
ZVAL_UNDEF(&MBREX(search_str));
155155
}
156156
MBREX(search_pos) = 0;
157+
MBREX(search_re) = NULL;
157158

158159
if (MBREX(search_regs) != NULL) {
159160
onig_region_free(MBREX(search_regs), 1);

0 commit comments

Comments
 (0)