Skip to content

Commit 085371b

Browse files
committed
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Reset MBREX(search_re) in RSHUTDOWN
2 parents bdcfdd4 + 560ff97 commit 085371b

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
@@ -156,6 +156,7 @@ PHP_RSHUTDOWN_FUNCTION(mb_regex)
156156
ZVAL_UNDEF(&MBREX(search_str));
157157
}
158158
MBREX(search_pos) = 0;
159+
MBREX(search_re) = NULL;
159160

160161
if (MBREX(search_regs) != NULL) {
161162
onig_region_free(MBREX(search_regs), 1);

0 commit comments

Comments
 (0)