Skip to content

1.8.6 out of memory errors #8054

@staabm

Description

@staabm

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

Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 262144 bytes) in C:\dvl\Workspace\phpstan-src-staabm\src\Reflection\BetterReflection\BetterReflectionProvider.php on line 335

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 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions