安装Composer错误提示:The PHP exe file you specified did not run correctly [exit code -1073741643]
原因:php.ini中xdebug配置导致的
解决:注释掉xdebug部分配置
[xdebug]
;加载xdebug库文件
zend_extension="D:/Program Files/php-7.2.30-Win32-VC15-x64/ext/php_xdebug-2.9.6-7.2-vc15-x86_64.dll"
xdebug.auto_trace="On"
xdebug.show_exception_trace="On"
xdebug.remote_autostart="On"
;开启远程调试
xdebug.remote_enable = "1"
;客户机ip
xdebug.remote_host = "localhost"
;客户机xdebug监听端口和调试协议
xdebug.remote_port = "9000"
;用于zend studio远程调试的应用层通信协议
xdebug.remote_handler = "dbgp"
xdebug.collect_vars="On"
;是否开启调试内容
xdebug.profiler_enable = "On"
xdebug.trace_output_dir="E:\xdebug_tmp\debug.log"
xdebug.profiler_output_dir="E:\xdebug_tmp\debug.log"
xdebug.idekey = PHPSTORM
注释掉之后:
;[xdebug]
;加载xdebug库文件
;zend_extension="D:/Program Files/php-7.2.30-Win32-VC15-x64/ext/php_xdebug-2.9.6-7.2-vc15-x86_64.dll"
;xdebug.auto_trace="On"
;xdebug.show_exception_trace="On"
;xdebug.remote_autostart="On"
;开启远程调试
;xdebug.remote_enable = "1"
;客户机ip
;xdebug.remote_host = "localhost"
;客户机xdebug监听端口和调试协议
;xdebug.remote_port = "9000"
;用于zend studio远程调试的应用层通信协议
;xdebug.remote_handler = "dbgp"
;xdebug.collect_vars="On"
;是否开启调试内容
;xdebug.profiler_enable = "On"
;xdebug.trace_output_dir="E:\xdebug_tmp\debug.log"
;xdebug.profiler_output_dir="E:\xdebug_tmp\debug.log"
;xdebug.idekey = PHPSTORM