[PHP-users 16137]Re: マルチバイト関数が使用できません(mb_XXX)

satou-y @ idc.aics.ne.jp satou-y @ idc.aics.ne.jp
2003年 6月 23日 (月) 17:50:07 JST


佐藤です。

重松さん、永田さん早速の御回答ありがとうございます。
まず、php4.3.2ですが、事情があって、早急にバージョンをあげることが
できません。ですので、4.3.1にてテストをしています。
ちなみに、先ほどのテスト結果については、個人の環境にて4.3.2で
実施したものですが、エラー内容に変化はありませんでした。

On Mon, 23 Jun 2003 17:28:26 +0900
Masahito NAGATA <masahito @ arp-corp.co.jp> wrote:

> > [実行後のエラー内容]
> > [root @ satou /root]# php sendmail.php 
> > Content-type: text/html
> > X-Powered-By: PHP/4.3.2
> > 
> > <br />
> > <b>Fatal error</b>:  Call to undefined function:  mb_encode_mimeheader() in <b>/root/sendmail.php</b> on line <b>2</b><br />
> 
>  他の方からも御指摘が出てくるとは思いますが、
> こちらを参考にされれば解決するかと思います。
> php.iniの当該個所のコメントアウト(;)を外して下さい。
> http://ns1.php.gr.jp/pipermail/php-users/2003-January/012569.html
> 
早速、php.iniの以下設定のコメントアウト、及びapacheのリスタートを
実施しましたが、結果はかわらずエラーとなってしまいました。
コマンドラインから実施しても、ブラウザから参照実施しても、
同様のエラーとなります。

ちなみにですが、環境を書き忘れましたので、追記します。
apache-1.3.27 + php-4.3.1

; language for internal character representation.
mbstring.language = Japanese

念のため、[mbstring]ディレクティブの全リストを以下に転記します。
[mbstring]
; language for internal character representation.
mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; enable automatic encoding translation accoding to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0



PHP-users メーリングリストの案内