Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in Uniform Server with PHP 7.2

Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding() in Uniform Server with PHP 7.2

我将 Uniform Server 与 PHP 7.2 一起使用,然后在 运行 一个 php 页面上出现此错误。

Fatal error: Uncaught Error: Call to undefined function mb_detect_encoding()

当我尝试通过图形用户界面启用 mbstring php 模块(和其他模块)时,我得到了这个。

所以当我手动执行时,我的 php_production.ini 看起来像这样。我已经使用 Uniform Server select php 设置文件。

extension=gd2
extension=mbstring
extension=exif      ; Must be after mbstring as it depends on it
extension=mysqli

那么,如果我通过文本编辑器手动启用了模块,为什么仍然会出现错误?

Here is my phpinfo.

下面是C:\Users\Documents\UniServerZ\core\php72\extensions

的内容

Uniform Server 的开发者设法解决了这个问题,在 this post 中这样说。

Ok.. Thanks for bringing this up.. Looks like made a mistake on the spelling on the extensions folder. Please rename the /core/php72/extentions to /core/php72/extensions and everything should work as expected.. I have updated the module in Sourceforge.