The Input Filter PHP extension is not setup on this PHP installation の例外について

概要: The Input Filter PHP extension is not setup on this PHP installation の例外について説明します。

    Q:

"The Input Filter PHP extension is not setup on this PHP installation, so the contents returned by Input is *not* filtered"の例外が発生します。

    A:

システムに PHPの拡張モジュールである Input Filterがインストールされていないためです。

Input Filterを必要としないのであれば、system.inc.phpファイル内の

throw new Exception("The Input Filter PHP extension is not setup on this PHP installation, so the contents returned by Input is *not* filtered");

の行をコメントにします。

あるいは、Input Filter拡張をインストールします。

PHP 5.2xを使用しているのであれば、PHPの Input Filterは既に組み込まれていますが、filter_data関数は filter_var関数に名称変更されました。

PHP5.1xと PHP 5.2xの両方のサポートを提供する system.inc.php クラスの更新されたバージョンが利用できます。