Browse Source

Forward memory limit even if it was overwritten when restarting without xdebug, fixes #6004

Jordi Boggiano 8 years ago
parent
commit
2c39c43a9e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Composer/XdebugHandler.php

+ 2 - 0
src/Composer/XdebugHandler.php

@@ -171,6 +171,8 @@ class XdebugHandler
             $content .= $this->getIniData($file, $replace);
             $content .= $this->getIniData($file, $replace);
         }
         }
 
 
+        $content .= PHP_EOL.'memory_limit='.ini_get('memory_limit').PHP_EOL;
+
         return @file_put_contents($this->tmpIni, $content);
         return @file_put_contents($this->tmpIni, $content);
     }
     }