Default memory limit to 4GB
parent
08fe84de35
commit
f43ce50d5a
|
@ -170,7 +170,7 @@ Example:
|
|||
#### `--memory-limit=integer` (optional)
|
||||
Sets memory limit for language server.
|
||||
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:
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ use Composer\{Factory, XdebugHandler};
|
|||
|
||||
$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) {
|
||||
if (file_exists($file)) {
|
||||
|
|
Loading…
Reference in New Issue