1
0
Fork 0

Default memory limit to 4GB

pull/426/head
Felix Becker 2017-06-21 11:48:41 +02:00
parent 08fe84de35
commit f43ce50d5a
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ Example:
#### `--memory-limit=integer` (optional) #### `--memory-limit=integer` (optional)
Sets memory limit for language server. Sets memory limit for language server.
Equivalent to [memory-limit](http://php.net/manual/en/ini.core.php#ini.memory-limit) php.ini directive. Equivalent to [memory-limit](http://php.net/manual/en/ini.core.php#ini.memory-limit) php.ini directive.
By default there is no memory limit. The default is 4GB (which is way more than needed).
Example: Example:

View File

@ -6,7 +6,7 @@ use Composer\{Factory, XdebugHandler};
$options = getopt('', ['tcp::', 'tcp-server::', 'memory-limit::']); $options = getopt('', ['tcp::', 'tcp-server::', 'memory-limit::']);
ini_set('memory_limit', $options['memory-limit'] ?? -1); ini_set('memory_limit', $options['memory-limit'] ?? '4G');
foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) { foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) {
if (file_exists($file)) { if (file_exists($file)) {