From 2c39c43a9e9c0ebf8b0477adcfdafc26b94116d7 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 30 Dec 2016 12:43:11 +0100 Subject: [PATCH] Forward memory limit even if it was overwritten when restarting without xdebug, fixes #6004 --- src/Composer/XdebugHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Composer/XdebugHandler.php b/src/Composer/XdebugHandler.php index 35581acf6..7a793d537 100644 --- a/src/Composer/XdebugHandler.php +++ b/src/Composer/XdebugHandler.php @@ -171,6 +171,8 @@ class XdebugHandler $content .= $this->getIniData($file, $replace); } + $content .= PHP_EOL.'memory_limit='.ini_get('memory_limit').PHP_EOL; + return @file_put_contents($this->tmpIni, $content); }