Skip to content
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

Raise memory limit to 512M if below, closes #16 #18

Closed
wants to merge 1 commit into from

Conversation

ktomk
Copy link

@ktomk ktomk commented Jan 14, 2018

Same as #17 just against 0.5. Done as Travis checks more PHP versions and I'm also bound to 0.5 use (yet).

When executing covers-validator on the default PHP 5.6 docker image with
an application with ca. 5 900 tests, the default set memory limit of PHP
with 128M[1] caused a limit violation and terminated the process.

Fix is to conditionally raise the memory limit to 512M if it is below.

That value *should* prevent first-use memory limit errors in such and
similar configurations. If however the utility needs more memory (which
might the case with more tests and/or a larger code base), this 512M then
still may not be enough - just saying.

Additionally error reporting is set to all kind of errors and the display
of errors is switched on. This is generally useful as the files
in the @Covers notations are then also parsed and deprecation or similar
errors are displayed (w/o making the covers validation fail unless there
is a failure with @Covers notations as well).

Refs:

- [1] http://php.net/manual/en/ini.core.php#ini.memory-limit

- oradwell#16
@ktomk
Copy link
Author

ktomk commented Jan 14, 2018

Travis fails with PHP 5.3 as it is not available on Precise VM. Everything else looks good.

@oradwell oradwell mentioned this pull request Jan 14, 2018
@ktomk ktomk closed this Apr 29, 2021
@ktomk ktomk deleted the patch-1-0.5 branch April 29, 2021 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant