I have a Symfony3 project on my localhost (Windows 7 Entreprise) and I use Wamp Server 3.0.0 with PHP 5.6.16 and Apache 2.4.17.
When I do : php bin/console cache:clear
I also have a memory limit error every time I use Composer (for installing bundles for example).
I modified my php.ini : memory_limit = 1G and restarted all services of Wamp.
I still have this problem. My project is a big one so maybe it comes from it.
The only solution that I found is to increase memory limit in every command line (-1 = unlimited) :/
php -d memory_limit=-1 C:\Path\of\composer.phar require ...
In production, my project is on a Windows Server 2008 R2.
Have you a better way to increase memory limit for my entire project ? Thanks for your help.

php.inifile? You can check which.inifiles are used by runningphp --inimake sure that none of the additional.inifiles is overwriting yourmemory_limit. You can check it withphp -i(and search formemory_limit) or if bash and grep is available (eg. git bash) tryphp -i | grep memory_limitto see if yourmemory_limitis set correctly.php --iniand here is the result :Loaded Configuration File : C:\wamp64\bin\php\php5.6.16\php.ini. So the good file is obviously used. Going to check if this file has my 1G limit or not and ... it has a 128M limit !! Actually, using Wamp context menu, I modifiedC:\wamp64\bin\apache\apache2.4.17\bin\php.inieven if I clicked on PHP folder > php.ini (in the menu).