Skip to content

Commit 2eb2f9d

Browse files
committed
Fix GH-8685 mbstring requires pcre
1 parent 813d942 commit 2eb2f9d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ext/mbstring/mbstring.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,18 @@ static const php_mb_nls_ident_list php_mb_default_identify_list[] = {
161161

162162
/* }}} */
163163

164+
/* {{{ mbstring_deps[] */
165+
static const zend_module_dep mbstring_deps[] = {
166+
ZEND_MOD_REQUIRED("pcre")
167+
ZEND_MOD_END
168+
};
169+
/* }}} */
170+
164171
/* {{{ zend_module_entry mbstring_module_entry */
165172
zend_module_entry mbstring_module_entry = {
166-
STANDARD_MODULE_HEADER,
173+
STANDARD_MODULE_HEADER_EX,
174+
NULL,
175+
mbstring_deps,
167176
"mbstring",
168177
ext_functions,
169178
PHP_MINIT(mbstring),

0 commit comments

Comments
 (0)