我已经将我的zend功能代码托管在aws服务器中,并且在进行基本密码身份验证时遇到了mb_substr()函数未定义的错误。我已经使用php 7.0.30和ubuntu 16.4。错误详细信息如下
[Wed Aug 29 13:42:43 2018] PHP Fatal error: Uncaught Error:
Call to undefined function Zend\Crypt\Password\mb_substr() in
/var/www/html/8181/vendor/zendframework/zend-crypt/src/Password/Apache.php:128
Stack trace:
#0 /var/www/html/8181/vendor/zendframework/zend-authentication/src/Adapter/Http/ApacheResolver.php(165):
Zend\Crypt\Password\Apache->verify('admin', '$apr1$Wgw6JqIq$...')
经过谷歌搜索后,我对php.ini文件进行了一些更改,只需删除php_mbstring和php_exif dll模块的分号即可。但我仍然只有同样的错误,
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll #i have enable this and below one.
extension=php_exif.dll ; Must be after mbstring as it depends on it
;extension=php_mysqli.dll
;extension=php_oci8_12c.dll ; Use with Oracle Database 12c Instant Client
您能帮忙解决此问题吗?
谢谢
Gopal R