PHP Velho Oeste 2024

実行時設定

php.ini の設定により動作が変化します。

Iconv 設定オプション
名前 デフォルト 変更可能 変更履歴
iconv.input_encoding "" INI_ALL PHP 5.6.0 で非推奨となりました。
iconv.output_encoding "" INI_ALL PHP 5.6.0 で非推奨となりました。
iconv.internal_encoding "" INI_ALL PHP 5.6.0 で非推奨となりました。

以下に設定ディレクティブに関する 簡単な説明を示します。

警告

(IBM AIX のように)いくつかのシステムでは "ISO-8859-1" ではなく "ISO8859-1" を使用することがあります。そのような場合は、設定オプションや 関数のパラメータにはこの値を使用しなければなりません。

iconv.input_encoding string
警告

この機能は PHP 5.6.0 で 非推奨になります。この機能に頼らないことを強く推奨します。

PHP 5.6 以降のユーザーは、これを空のままにしておいて、代わりに input_encoding を設定すべきです。

iconv.output_encoding string
警告

この機能は PHP 5.6.0 で 非推奨になります。この機能に頼らないことを強く推奨します。

PHP 5.6 以降のユーザーは、これを空のままにしておいて、代わりに output_encoding を設定すべきです。

iconv.internal_encoding string
警告

この機能は PHP 5.6.0 で 非推奨になります。この機能に頼らないことを強く推奨します。

PHP 5.6 以降のユーザーは、これを空のままにしておいて、代わりに default_charset を設定すべきです。

add a note add a note

User Contributed Notes 1 note

up
-4
Justin
15 years ago
Many people report problems compiling PHP on Leopard due to a libiconv issue.

This may be due to the small C test programme in ./configure.
It calls open_conv with two const * char arguments (correct), but these are NOT valid charsets to iconv. This then breaks ./configure.

AFAIK from the libiconv documentation, the PHP configure call is incorrect: this function expects two valid charset arguments. (You can see a list of valid arguments by running iconv -l).

Changing the call to:

cd = open_conv("UTF-8","ISO-8859-1")

returns a valid iconv_t number (non-negative), and configure can then continue setting up for your Makefile compile.
To Top