If you are using composer in your php project, you might encounter the the same error as mine.
PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71 bytes) in phar:///sf2projects/myproject/composer.phar/src/Composer/DependencyResolver/RuleWatchGraph.php on line 47
To solve this PHP fatal error allowed memory size exhausted problem, refer to the solution below:-
Advertisements
- You can use a php parameter to specify the allowed memory like below:-
php -d memory-limit=1G composer require vendorname/bundlename
*You can adjust the memory limit value to 768M, 1024M, 1G, 2G to suite your need
Related posts:
Prestashop 1.6: "Unexpected token <" error when upload category thumbnail
PHP Programming: The difference between require() and include()
Symfony Filter: Change ForeignKey drop down to Text field
How to svn thru ssh in Linux / Mac
How to install SVN 1.6 on CentOS 5
Free image editor for Mac OS X / XP / Vista / Linux
Rip DVD Movies with Handbrake
How to flush DNS cache in Linux / Windows / Mac
Share this with your friends:-