Q:

composer runs out of memory, cannot work around

I'm trying to install dependencies for a PHP command line tool with composer (installed in cygwin), but it runs out of memory no matter what I do.
I've increased memory_limit in php.ini to 2G
I've tried running php -d memory_limit=2G composer.phar with 
I've tried removing the limit altogether with php -d memory_limit=-1 composer.phar ...
It keeps thinking it only has 64M of RAM available to it: Fatal error: Out of memory (allocated 68681728) (tried to allocate 2147215 bytes)
This machine as 24GB of RAM.

A:

Thanks to matzeri, the 64-bit cygwin seems to have done the trick.  Oddly, though, composer on 32-bit cygwin always ran out at only 64MB.

