PHP Warning: PHP Startup: ????????: Unable to initialize module

后端 未结 9 1586
余生分开走
余生分开走 2020-12-08 22:16

After upgrading php from 5.1 to 5.2.10, I got the following warnings when php -v:

    # php -v
    PHP Warning:  PHP Startup: fileinfo: Unable t         


        
9条回答
  •  -上瘾入骨i
    2020-12-08 22:47

    This is just describing why I had this issue in case someone finds it helpful.

    My problem was that I had upgraded php with homebrew and had forced at some point the variable PHP_INI_SCAN_DIR in my profile or bashrc file so it was pointing to the old php version. Removed that line and fixed.

提交回复
热议问题