diff --git a/ext/mbstring/mbregex.c b/ext/mbstring/mbregex.c index 912d2ada089..26348242dbc 100644 --- a/ext/mbstring/mbregex.c +++ b/ext/mbstring/mbregex.c @@ -305,6 +305,7 @@ init_syntax_once() static int done = 0; char *s = emalloc(10240), *sp; int ch; + TSRMLS_FETCH(); if (done) return;