Solution to the problem that php cli stops working: 1. Open the php.ini configuration file; 2. Find the Xdebug extension and add a ";" semicolon comment before the extension.
#The operating environment of this article: Windows 7 system, PHP version 7.4, Dell G3 computer.
What should I do if the php cli stops working?
CLI has stopped working. Windows is checking the solution to the problem.
When running the php cmd command, the CLI has stopped working error appears as shown below
It is said online that there is a problem with the php.ini configuration file.
It may be a problem with extension loading. Find the third-party extension and comment it out and try it.
I got an error The reason is that the Xdebug extension
[Xdebug] ;zend_extension="C:/php5-x86/ext/php_xdebug-2.2.5-5.5-vc11.dll" ;xdebug.auto_trace=1 ;xdebug.collect_params=1 ;xdebug.collect_return=1 ;xdebug.trace_output_dir="C:/php5-x86/log" ;xdebug.profiler_enable=1 ;xdebug.profiler_output_dir="C:/php5-x86/log"
is used and can be used by adding; before commenting it out.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What to do if php cli stops working. For more information, please follow other related articles on the PHP Chinese website!