-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment::increaseMemoryLimitTo()
cannot increase memory to "unlimited"
#8570
Comments
This also affects |
I think so, but |
@robbieaverill changing IMHO
|
Affected Version
4.2.1
Description
I cannot increase memory (e.g. in a dev task) to "unlimited", cause "-1" get's convertet to "1".
Steps to Reproduce
Step debugger on
Environment::increaseTimeLimitTo();
after it calls
Convert::memstring2bytes()
the default string of "-1", which means "unlimited" is convertet to an integer "1".This regex in
Convert::memstring2bytes()
removes the minus sign:Questions: Who is repsonsible to preserve the "-1" ? Should the logic go to the convert method or should increaseMemoryLimitTo handle that?
I'd vote for convert, what do the core commiters think about it?
As most of the time I'm happy to create a PR for that small but annoying issue
The text was updated successfully, but these errors were encountered: