You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when setting the memory limit, it will just be "hard" set to whatever value is passed: $ phpcs -d memory_limit=32M /path/to/code
In most cases, the memory_limit is passed - either from the command line or the ruleset via <ini name="" value=""/> - to attempt to raise the memory limit, however, the existing memory limit is not checked, so in effect the memory_limit could currently be lowered.
Should a check be build in to only allow for raising the memory limit and to ignore (or raise a warning) about lowering the memory limit ?
The text was updated successfully, but these errors were encountered:
Currently when setting the memory limit, it will just be "hard" set to whatever value is passed:
$ phpcs -d memory_limit=32M /path/to/code
In most cases, the
memory_limit
is passed - either from the command line or the ruleset via<ini name="" value=""/>
- to attempt to raise the memory limit, however, the existing memory limit is not checked, so in effect thememory_limit
could currently be lowered.Should a check be build in to only allow for raising the memory limit and to ignore (or raise a warning) about lowering the memory limit ?
The text was updated successfully, but these errors were encountered: