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

Allow memory size exhausted. #63

Closed
Koopabro opened this issue May 15, 2019 · 2 comments
Closed

Allow memory size exhausted. #63

Koopabro opened this issue May 15, 2019 · 2 comments

Comments

@Koopabro
Copy link

This error pops up:

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 33554440 bytes) in [projectfolder]/vendor/nunomaduro/phpinsights/src/Domain/Collector.php on line 349

@nunomaduro
Copy link
Owner

@wlarch
Copy link

wlarch commented Jun 8, 2021

I have encountered the memory limit using PHP command line interface ( CLI ) and has a hard time finding how to increase the memory limit. After trying to modify the loaded php.ini file or specifying the memory as a CLI parameter php -d memory_limit=2G ./vendor/bin/phpinsights, I realized the memory limit stayed the same 134217728 bytes (128M).

I found out I had a previous phpcs.xml file for PHP Code Sniffer in which the following flag was specified :
<ini name="memory_limit" value="128M"/>

After removing the ini flag, everything is good ! I hope it can help others.

It may be worth of mention in the docs @nunomaduro ?

master...wlarch:patch-1

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

No branches or pull requests

3 participants