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
1.8.6 out of memory errors #8054
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
Please:
Currently the issue doesn't give any actionable info. |
it crashes on the very first file before any before/after
at least we could revert the commit ;). but sure, I need to find a repro.. not that easy though I will see what I can do |
just reduced the file to
as soon as this constant is contained it explodes. phpstan.neon
as soon as I remove |
Some define() call will be the reason for this problem. |
within I can reduce the file to
when removing the |
just pushed a repo in which I can locally reproduce: https://github.com/staabm/phpstan-bug8054 I guess the main culprit is, that files are beeing analyzed which contain procedural code and define constants |
Here's the stack trace of the infinite recursion: click here
|
Same here, we've been able to temporarily fix the issue by running in debug mode, so that may be a solution until it's fixed.
So somehow the issue doesn't exist in verbose debug mode, but without debug it runs into memory issues. |
Fixed: phpstan/phpstan-src@33771e5 Please test it: |
my reproducer is fixed for me now. thank you |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
since update to 1.8.6 we see out of memory errors.. a codebae which previously worked on 4GB memory limit does not even work with 20GB
Code snippet that reproduces the problem
I could not yet isolate the code required to trigger it, but bisecting 1.8.5...1.8.6 revealed that this rather innocent commit phpstan/phpstan-src@ec28678 created the problem.
just reverting this single commit from 1.8.6 makes everything working for us.
Expected output
no memory problems
Did PHPStan help you today? Did it make you happy in any way?
all day, every day <3 ;)
The text was updated successfully, but these errors were encountered: