我已经使用与 5.4.13 版本相同的配置在 linux 系统上编译了 5.4.14 版本的 PHP。我运行以下 PHP -i 命令并得到:
[root@localhost php-5.4.14]# php -i
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/fileinfo.so' - /usr/lib64/20100525/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/json.so' - /usr/lib64/20100525/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/phar.so' - /usr/lib64/20100525/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/20100525/zip.so' - /usr/lib64/20100525/zip.so: cannot open shared object file: No such file or directory in Unknown on line 0
现在我知道 JSON 现在是 PHP 核心的一部分,并且没有 JSON.SO(我假设其他人也是如此)。有谁知道为什么这是一个问题?我的 php.ini 文件中没有任何 extension=XXXX.so 行。我在 Centos 6.4 下编译。