我有这个自定义编译的 PHP (v5.3.3),并启用了以下扩展(通过配置):
./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() clearly states that mbstring is enabled:
有趣的是,当我尝试运行一些 PHP 脚本(SugarCRM 更新)时,它报告以下错误:
PHP 致命错误:在第 4165 行调用 crm/include/pclzip/pclzip.lib.php 中未定义的函数 mb_strlen()
谁能解释一下为什么会发生这种情况以及如何解决这个问题?
谢谢,
米^e
对于 PHP 4.3.3 或之前版本,要启用该功能,您必须向 --enable-mbstring=LANG 的 LANG 参数提供以下选项之一; --enable-mbstring=cn 表示简体中文支持,--enable-mbstring=tw 表示繁体中文支持,--enable-mbstring=kr 表示韩语支持,--enable-mbstring=ru 表示俄语支持,--enable -mbstring=ja 用于日语支持(默认)。要启用所有支持的编码,请使用 --enable-mbstring=all
try
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)