1
0
Fork 0

Merge pull request #1222 from compwright/patch-3

Minor English and readability improvements
pull/1220/merge
Jordi Boggiano 2012-10-17 00:49:43 -07:00
commit 6cd838a0d7
1 changed files with 8 additions and 7 deletions

View File

@ -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 <...>