[PHP-users 8167] PHP4.2.1でmbstringがうまく動作しない

綾乃介 php-users@php.gr.jp
Fri, 21 Jun 2002 01:11:34 +0900


こんにちは、綾乃介です。

こんど、PHPのバージョンをアップしたのですが、PHP4.2.1でmbstringがうまく
動作しないのです。
症状としては、ソースをEUCで書いて、OUTPUTはSJISにしてるんですが、EUCのま
ま表示されてしまうのです。さらに、PHPの簡単なコードも走らないみたいなん
です。ブラウザから見ると、PHPソースは見えなくなってるので、PHPの処理は行
われているようなんですが・・・

同様の症状に合われた方はいますか?

Configure Command './configure' '--with-pgsql' '--with-mysql'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-versioning' 

php.iniは、recommended(あってる?)を元に設定しています。

設定は以下のようになってます。phpinfoからのコピーですが。
mbstring
Multibyte (Japanese) Support enabled 
http input encoding translation enabled 

Directive Local Value Master Value 
mbstring.detect_order    auto auto 
mbstring.func_overload   0 0 
mbstring.http_input      auto auto 
mbstring.http_output     SJIS SJIS 
mbstring.internal_encoding EUC-JP EUC-JP 
mbstring.substitute_character    no value no value