From Mac terminal when I run php -r "echo ini_get('memory_limit').PHP_EOL;"
, the output is being 128M
but when running sudo nano /Applications/MAMP/bin/php/php5.5.26/conf/php.ini
, I can see different memory information, which is memory_limit = 1G
(which I set myself before). The problem is I want to make sure that greater amount of memory is set, because I keep having this error:
PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 33 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 138
when running command like composer require symfony/var-dumper
Any suggestions?