Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295674

mbstring problems w. Drupal 7 and php 5.6

$
0
0

Short, potentially familiar problem statement: I've upgraded a Drupal 7 site to run on top of php 5.6, and am now getting warning messages in my site log: "PHP Deprecated: Unknown: Use of mbstring.http_input is deprecated in..."

This issue has gotten a lot of discussion here and elsewhere, and I hate to bring it up in another thread. But there are so many posts (some going back 9 or 10 years), referring to so many patches that are targeted to Drupal 6, 7, and 8, that I just can't figure out what's to be done. So, if I can get a bit of help...

Where I am:

* I THINK I have mbstring.http_input and mbstring.http_output properly set to 'pass', as noted in most of the posts. These values are in my apache config file for the site --

<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>

and a check of the mbstring section of phpinfo.php says that the local value of mbstring.http_input and mbstring.http_output are indeed both 'pass' (although the "master value" of both is blank). I've also applied the patch to unicode.inc described in https://www.drupal.org/node/2332295#comment-9169739. The result is that I'm not seeing Drupal complain about mbstring, but I'm getting the "Deprecated..." messages in the site log file. This is probably not good, and it certainly clutters up the logs.

So: How can I get php to be happy about this? Is my installation OK, and I just have to live with messy logs? Or is there a configuration problem that really needs to be addressed? Any advice? Thanks!


Viewing all articles
Browse latest Browse all 295674

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>