From dee785cc819bb7305b83cfb9d98bacc28681e7da Mon Sep 17 00:00:00 2001 From: Jonathon Hill Date: Tue, 16 Oct 2012 15:49:01 -0300 Subject: [PATCH] Minor English and readability improvements --- doc/articles/troubleshooting.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/articles/troubleshooting.md b/doc/articles/troubleshooting.md index 9c71ea3ec..16cfb8ebc 100644 --- a/doc/articles/troubleshooting.md +++ b/doc/articles/troubleshooting.md @@ -38,22 +38,23 @@ If composer shows memory errors on some commands: PHP Fatal error: Allowed memory size of XXXXXX bytes exhausted <...> -The `memory_limit` ini value should be increased. +The PHP `memory_limit` should be increased. -> **Note:** Composer internally increases the memory_limit to 512M. -> It is a good idea to create an issue for composer if you get memory errors. +> **Note:** Composer internally increases the `memory_limit` to `512M`. +> If you have memory issues when using composer, please consider [creating +> an issue ticket](https://github.com/composer/composer/issues) so we can look into it. -Get current value: +To get the current `memory_limit` value, run: php -r "echo ini_get('memory_limit').PHP_EOL;" -Increase limit with `php.ini` for a `CLI SAPI` (ex. `/etc/php5/cli/php.ini` for +Try increasing the limit in your `php.ini` file (ex. `/etc/php5/cli/php.ini` for Debian-like systems): - ; Use -1 for unlimited or define explicit value like 512M + ; Use -1 for unlimited or define an explicit value like 512M memory_limit = -1 -Or with command line arguments: +Or, you can increase the limit with a command-line argument: php -d memory_limit=-1 composer.phar <...>