From 21596b2ccd2e3d434f0088f176c1a58613df990d Mon Sep 17 00:00:00 2001 From: Kirill chEbba Chebunin Date: Fri, 24 Aug 2012 17:49:35 +0400 Subject: [PATCH] Increase memory to 512M, remove warning --- bin/composer | 7 +++---- doc/articles/troubleshooting.md | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/composer b/bin/composer index 5e2500e36..b22be4059 100755 --- a/bin/composer +++ b/bin/composer @@ -24,10 +24,9 @@ $memoryInBytes = function ($value) { }; $memoryLimit = trim(ini_get('memory_limit')); -// Increase memory_limit if it is lower than 256M -if ($memoryLimit != -1 && $memoryInBytes($memoryLimit) < 256 * 1024 * 1024) { - @ini_set('memory_limit', '256M'); - printf('Warning: memory_limit was increased from %s to %s' . PHP_EOL . PHP_EOL, $memoryLimit, '256M'); +// Increase memory_limit if it is lower than 512M +if ($memoryLimit != -1 && $memoryInBytes($memoryLimit) < 512 * 1024 * 1024) { + @ini_set('memory_limit', '512M'); } unset($memoryInBytes); diff --git a/doc/articles/troubleshooting.md b/doc/articles/troubleshooting.md index ecf4d239b..cbb2ab519 100644 --- a/doc/articles/troubleshooting.md +++ b/doc/articles/troubleshooting.md @@ -9,7 +9,7 @@ If composer shows memory errors on some commands: The `memory_limit` ini value should be increased. -> **Note:** Composer internaly increases the memory_limit to 256M. +> **Note:** Composer internaly increases the memory_limit to 512M. > It is a good idea to create an issue for composer if you get memory errors. Get current value: