Composer エラー: 「PHP 拡張ファイル情報がシステムに見つかりません」 質問する

Composer エラー: 「PHP 拡張ファイル情報がシステムに見つかりません」 質問する

Laravel パッケージ Intervention Image をインストールしようとしていますが、次を実行しますcomposer update:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - intervention/image 2.0.5 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.4 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.3 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.2 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.1 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - intervention/image 2.0.0 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
    - Installation request for intervention/image 2.* -> satisfiable by intervention/image[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5].

私は PHP 5.4 を使用しており、拡張機能は および で有効になっていphp.iniますphpinfo():

                    fileinfo

fileinfo support                  enabled
version                           1.0.5

Apache を再起動しましたが、まだうまくいきませんでした。

ベストアンサー1

Windows ユーザー:php.ini次の行を編集してコメントを解除します:

extension=php_fileinfo.dll

新しい php.ini を有効にするには、Apache を再起動することを忘れないでください。

おすすめ記事