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

miC*_*inG 7 php compilation mbstring fatal-error

我有这个自定义编译的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 
Run Code Online (Sandbox Code Playgroud)

phpinfo()明确指出mbstring已启用: 替代文字

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

PHP致命错误:在第4165行的crm/include/pclzip/pclzip.lib.php中调用未定义的函数mb_strlen()

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

谢谢,m ^ e

Sai*_*hna 0

将此 phpinfo() 放入某个 php 文件中以进行输出。并查找那里的 MbString 单独框,如果它不存在,则说明安装不正确。