New to PHP. Working on a PHP project and have xdebug enabled to be able to debug my php applications. The production server does not have xdebug enabled because it is handled by
On a fresh download of Symfony 3.1 and PHP 7.0, you can run the following (having edited it to include the path to your composer.phar file):
php -n -d extension=json.so -d extension=phar.so -d extension=pdo.so -d extension=ctype.so /path/to/composer update
If you have any extra vendors to your composer.json
file, you might find that they have a dependency on an extension, so you need to include that by adding -d extension=name_of_extension.so
to the list.
What's happening here is the -n
flag goes with PHP defaults - it doesn't load any ini
PHP config files, so XDebug is never loaded. Then each of the -d
flags allows you to dynamically set config values, so you can include extensions.