What kind of system are you running on? Many have separate php.ini for CLI or web server. If that is the case, you can simply not enable it for the CLI.
– Michael Berkowski
Or, you can create a custom php.ini which doesn't load xdebug and call it with the -c flag. I don't think there's a command line flag to explicitly disable a single extension.
– Michael Berkowski
The php -n command should disable all extensions.
– kenorb
1 Answers
2
votes
I found the answer by specifying a custom php.ini file for apache, and left the original php.ini file for cli.
in your apache configuration file. Just write the following bit of code.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
-c
flag. I don't think there's a command line flag to explicitly disable a single extension. – Michael Berkowskiphp -n
command should disable all extensions. – kenorb