如何在Centos 6.7中修复php 5.6 MB字符串问题?
我在Centos 6.7和PHP5.3上运行了一个Drupal 7站点,并最终将php更新为5.6.20。更新进展顺利;我遇到的唯一问题是,我收到了关于如何在Centos 6.7中修复php 5.6 MB字符串问题?,php,drupal,drupal-7,mbstring,Php,Drupal,Drupal 7,Mbstring,我在Centos 6.7和PHP5.3上运行了一个Drupal 7站点,并最终将php更新为5.6.20。更新进展顺利;我遇到的唯一问题是,我收到了关于mbstring.http\u input(和mbstring.http\u output)被弃用的日志消息: PHP不推荐使用:未知:在中不推荐使用mbstring.http_输出 我见过不少文章(例如)谈论解决方案如何获得: php_value mbstring.http_input pass php_value mbstring.http_
mbstring.http\u input
(和mbstring.http\u output
)被弃用的日志消息:
PHP不推荐使用:未知:在中不推荐使用mbstring.http_输出
我见过不少文章(例如)谈论解决方案如何获得:
php_value mbstring.http_input pass
php_value mbstring.http_output pass
使用ini\u set()
进入我的apache配置或Drupal settings.php文件。但我似乎已经这样做了:该站点的apache配置文件包含:
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag magic_quotes_sybase off
php_flag register_globals off
php_flag session.auto_start off
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_flag mbstring.encoding_translation off
</IfModule>
…日志消息也不见了。我还入侵了drupal_convert_to_utf8(),以确保不会调用mb_convert_encoding()
那么,耶?我是否做了一些将来会伤害我的事情,或者这是对网站的有效调整?还是介于两者之间
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag magic_quotes_sybase off
php_flag register_globals off
php_flag session.auto_start off
</IfModule>