PHP:调用未定义的函数mb_strlen() – 在启用了mbstring的自定义编译的PHP上

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了PHP:调用未定义的函数mb_strlen() – 在启用了mbstring的自定义编译的PHP上脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我有这个自定义编译的 PHP(v5.3.3),启用了以下扩展(通过configure):
./configure 
--PRefix=/usr/local/PHP5.3.3 
--wITh-config-file-path=/usr/local/apache2/conf 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-bz2 
--with-curl=/usr/lib 
--with-curlwrapPErs 
--with-freetype-dir=/usr/local 
--with-gd=/usr/local 
--with-gettext 
--with-gmp 
--with-iconv=/usr/local 
--with-imap=/usr/local/imap2007e 
--with-imap-ssl 
--with-jpeg-dir=/usr/local/lib 
--with-kerberos 
--with-libXMl-dir=/usr/lib 
--with-mcrypt=/usr/local 
--with-mhash 
--with-MysqL=/usr/lib/MysqL 
--with-MysqL-sock=/VAR/lib/MysqL/MysqL.sock 
--with-MysqLi=/usr/lib/MysqL/MysqL_config 
--with-openssl=/usr 
--with-pcre-dir=/usr/local/lib 
--with-pear 
--with-png-dir=/usr/local/lib 
--with-readline 
--with-sqlite 
--with-xMLrpc 
--with-xsl=/usr/local 
--with-zlib-dir=/usr/local/lib 
--with-zlib=/usr/local 
--without-pgsql 
--enable-bcmath 
--enable-calendar 
--enable-exif 
--enable-embedded-MysqLi=shared 
--enable-ftp 
--enable-gd-jis-conv 
--enable-gd-native-ttf 
--enable-mbstring=all 
--enable-mbregex 
--enable-shared 
--enable-sockets 
--enable-SOAp 
--enable-sqlite-utf8 
--enable-zend-multibyte 
--enable-zip 
--disable-pdo 
--disable-phar

PHPinfo()明确指出mbstring已启用:

有趣的是,当我尝试运行一些PHP脚本(SugarCRM更新)时,它会报告以下错误

任何人都可以为这是为什么会发生这种情况以及如何解决这个问题?

谢谢,
米^ E

尝试

>仅使用–enable-mbstring重新配置> grep mb_strlen $PATH_TO_YOUR_PHP_BINARY看它是否存在

脚本宝典总结

以上是脚本宝典为你收集整理的PHP:调用未定义的函数mb_strlen() – 在启用了mbstring的自定义编译的PHP上全部内容,希望文章能够帮你解决PHP:调用未定义的函数mb_strlen() – 在启用了mbstring的自定义编译的PHP上所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。