Discussion: Hard-require the mbstring PHP extension?
oliverklee opened this issue · comments
We don't currently require the
mbstring extension in the AMP plugin. Also:
mbstringis a non-default extension. This means it is not enabled by default. You must explicitly enable the module with the
WordPress core does not require it, but it does polyfill
mb_strlen(). Nevertheless, php-css-parser also uses
mb_strtolower(), which are not polyfilled in WP.
So I don't think we can safely depend on it without breaking many sites.