mbstring.internal_encoding

あるサイト様でmbstring.internal_encodingは5.Xまでなのでそれ以降は・・・という書き込みを見つける。
/usr/local/etc/php.iniの中にも書いていた。

; Use of this INI entry is deprecated, use global internal_encoding instead.
; internal/script encoding.
; Some encoding cannot work as internal encoding. (e.g. SJIS, BIG5, ISO-2022-*)
; If empty, default_charset or internal_encoding or iconv.internal_encoding is used.
; The precedence is: default_charset < internal_encoding < iconv.internal_encoding
;mbstring.internal_encoding = UTF-8

; Use of this INI entry is deprecated, use global input_encoding instead.
; http input encoding.
; mbstring.encoding_translation = On is needed to use this setting.
; If empty, default_charset or input_encoding or mbstring.input is used.
; The precedence is: default_charset < input_encoding < mbstring.http_input
; https://php.net/mbstring.http-input
;mbstring.http_input = UTF-8

; Use of this INI entry is deprecated, use global output_encoding instead.
; http output encoding.
; mb_output_handler must be registered as output buffer to function.
; If empty, default_charset or output_encoding or mbstring.http_output is used.
; The precedence is: default_charset < output_encoding < mbstring.http_output
; To use an output encoding conversion, mbstring’s output handler must be set
; otherwise output encoding conversion cannot be performed.
; https://php.net/mbstring.http-output
;mbstring.http_output = pass

ということで/usr/local/etc/php.iniは試験的に以下の内容にしてみる
;mbstring.internal_encoding = UTF-8
internal_encoding = UTF-8

;mbstring.http_input = UTF-8
input_encoding = “UTF-8”

;mbstring.http_output = pass
output_encoding = “pass”それともUTF-8?

それともdefault_charset だけ設定すればいいのだろうか。
優先順位とかかれているので。
ということで、再び修正し、上記3項目全てコメントアウトしてみます。

PHPマニュアル

結局これが
kernel log messages: +pid 12932 (httpd), jid 0, uid 0: exited on signal 11 (core dumped)
の原因になっているのでは?と。gdbではwarning: Could not load shared library symbols for [vdso].
結局問題にたどれず。ただ、今朝for vdsoだから、他の何かの原因?loglotateでもなくてnewsyslogでもなくて・・・ということでだとすればPHP?と調べていたところ、mbstring.internal_encodingに辿り着いたという。

カテゴリー: BSD

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA


日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)