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
Removal of CONSTANT_SCALAR_UNION_THRESHOLD causing out-of-memory condition #5527
Comments
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review. |
Possibly the same issue as #5524 |
ondrejmirtes
added a commit
to phpstan/phpstan-src
that referenced
this issue
Aug 25, 2021
Thank you! Did some optimization: phpstan/phpstan-src@a6ca5f7 |
ondrejmirtes
added a commit
that referenced
this issue
Aug 25, 2021
Confirmed thanks! |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug report
Hi, since 0.12.95 I have a PHP file that is causing very long run times, eventually terminating in an out-of-memory condition where previously it was super fast and used less than 1GB. This snippet will also cause a timeout in the playground.
I have narrowed it down to the below piece of a Base64 decoder, and it's the adding of the four lines at the end of the function that is causing the issue. As you delete the last lines of the function one at a time performance improves. Using all four lines causes PHPStan to run out of memory.
I was able to git bisect the issue down to commit phpstan/phpstan-src@c56d866
Current output is:
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is great!
The text was updated successfully, but these errors were encountered: