downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

実行時設定> <要件
[edit] Last updated: Fri, 10 Feb 2012

view this page in

インストール手順

この拡張モジュールは、PHP 5.3.0 以降には同梱されています。一方 PHP 5.2.0 以降では PECL 版がインストールできます。つまり、intl 拡張モジュールのインストール方法は二通りあるということです。

この PECL 拡張モジュールをインストールする方法は、 マニュアルの PECL 拡張モジュールのインストール という章にあります。 新規リリース・ダウンロード・ソースファイル・管理者情報・CHANGELOG といった関連する情報については、次の場所にあります。 » http://pecl.php.net/package/intl.

一方、同梱されているバージョンを使うには、PHP のコンパイル時に --enable-intl を指定して有効化します。

ICU のインストール場所が標準と異なる場合は、その場所を環境変数 LD_LIBRARY_PATH に指定しましょう。 そうすればリンカがライブラリを見つけてくれるようになります。

$ export LD_LIBRARY_PATH=/opt/icu/lib

PHP と ICU をデフォルトの場所にインストールしている場合は、 `configure' 時の追加のオプションは不要です。



add a note add a note User Contributed Notes インストール手順
xgretsch 04-Apr-2011 12:46
I'm running on Mac OS X using a MacPorts install. According to this page, my vanilla version of PHP 5.3.5 from MacPorts should include the intl functions by default. As far as I can see from phpinfo(), the MacPorts version did not disable it. However, the functions aren't visible and don't work.

It seems to require an additional:

sudo port install php5-intl

After which everything bursts into life.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites