I have tried setting the limit in php.ini but I always get the same error:
Allowed memory size of 262144 bytes exhausted (tried to allocate 341351 bytes) in Unknown on line 0
I can work around this by calling php -d memory_limit=2048M
script.php
But can't figure out what to do with composer.
See Question&Answers more detail:os