The current logic assumes that memory_limit is always described in Megabytes. However, if the memory_limit is expressed in Gigabytes for example, the script will think it's less than 32 Megabytes and lower the memory limit.
This happened to me while testing joomlatools/joomla-composer#16. PHP's memory_limit was set to 1G but JCE installation lowered it to 32M :)
The current logic assumes that memory_limit is always described in Megabytes. However, if the memory_limit is expressed in Gigabytes for example, the script will think it's less than 32 Megabytes and lower the memory limit.
This happened to me while testing joomlatools/joomla-composer#16. PHP's memory_limit was set to 1G but JCE installation lowered it to 32M :)