我使用 VS Code 进行PHP开发,安装了 PHP IntelliSense 扩展插件,并按照VSCode官方文档的指引设置了PHP的相关参数。
我在 VSCode 的配置文件settings.json中,进行了如下的配置:
{
"php.executablePath": "E:/xampp/php/php.exe",
"php.validate.enable": true,
"php.validate.executablePath": "E:/xampp/php/php.exe",
}
路径配置都是对的,但是在 VSCode 中打开PHP文件时,软件右下角还是提示如下信息:
Error spawning PHP: Command failed: E:/xampp/php/php.exe --version
PHP Warning: PHP Startup: Unable to load dynamic library 'bz2' (tried: \xampp\php\ext\bz2 (找不到指定的模块。), \xampp\php\ext\php_bz2.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: \xampp\php\ext\curl (找不到指定的模块。), \xampp\php\ext\php_curl.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'fileinfo' (tried: \xampp\php\ext\fileinfo (找不到指定的模块。), \xampp\php\ext\php_fileinfo.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: \xampp\php\ext\gd2 (找不到指定的模块。), \xampp\php\ext\php_gd2.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'gettext' (tried: \xampp\php\ext\gettext (找不到指定的模块。), \xampp\php\ext\php_gettext.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mbstring' (tried: \xampp\php\ext\mbstring (找不到指定的模块。), \xampp\php\ext\php_mbstring.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'exif' (tried: \xampp\php\ext\exif (找不到指定的模块。), \xampp\php\ext\php_exif.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: \xampp\php\ext\mysqli (找不到指定的模块。), \xampp\php\ext\php_mysqli.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: \xampp\php\ext\pdo_mysql (找不到指定的模块。), \xampp\php\ext\php_pdo_mysql.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: \xampp\php\ext\pdo_sqlite (找不到指定的模块。), \xampp\php\ext\php_pdo_sqlite.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_openssl.dll' (tried: \xampp\php\ext\php_openssl.dll (找不到指定的模块。), \xampp\php\ext\php_php_openssl.dll.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_ftp.dll' (tried: \xampp\php\ext\php_ftp.dll (找不到指定的模块。), \xampp\php\ext\php_php_ftp.dll.dll (找不到指定的模块。)) in Unknown on line 0
PHP Warning: Cannot open '/xampp/php/extras/browscap.ini' for reading in Unknown on line 0
PHP Fatal error: Unable to start standard module in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'bz2' (tried: \xampp\php\ext\bz2 (找不到指定的模块。), \xampp\php\ext\php_bz2.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: \xampp\php\ext\curl (找不到指定的模块。), \xampp\php\ext\php_curl.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'fileinfo' (tried: \xampp\php\ext\fileinfo (找不到指定的模块。), \xampp\php\ext\php_fileinfo.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: \xampp\php\ext\gd2 (找不到指定的模块。), \xampp\php\ext\php_gd2.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'gettext' (tried: \xampp\php\ext\gettext (找不到指定的模块。), \xampp\php\ext\php_gettext.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'mbstring' (tried: \xampp\php\ext\mbstring (找不到指定的模块。), \xampp\php\ext\php_mbstring.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'exif' (tried: \xampp\php\ext\exif (找不到指定的模块。), \xampp\php\ext\php_exif.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'mysqli' (tried: \xampp\php\ext\mysqli (找不到指定的模块。), \xampp\php\ext\php_mysqli.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: \xampp\php\ext\pdo_mysql (找不到指定的模块。), \xampp\php\ext\php_pdo_mysql.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: \xampp\php\ext\pdo_sqlite (找不到指定的模块。), \xampp\php\ext\php_pdo_sqlite.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'php_openssl.dll' (tried: \xampp\php\ext\php_openssl.dll (找不到指定的模块。), \xampp\php\ext\php_php_openssl.dll.dll (找不到指定的模块。)) in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'php_ftp.dll' (tried: \xampp\php\ext\php_ftp.dll (找不到指定的模块。), \xampp\php\ext\php_php_ftp.dll.dll (找不到指定的模块。)) in Unknown on line 0
Warning: Cannot open '/xampp/php/extras/browscap.ini' for reading in Unknown on line 0
Fatal error: Unable to start standard module in Unknown on line 0
请问,这种问题该如何解决呢?