Browse Source

Boost memory_limit at runtime if permitted

Jordi Boggiano 12 năm trước cách đây
mục cha
commit
32692e519c
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      bin/composer

+ 2 - 1
bin/composer

@@ -6,7 +6,8 @@ require __DIR__.'/../src/bootstrap.php';
 use Composer\Console\Application;
 
 error_reporting(-1);
-ini_set('display_errors', 1);
+@ini_set('display_errors', 1);
+@ini_set('memory_limit', '512M');
 
 // run the command application
 $application = new Application();