Trouble shooting the infinite loop
Configuration files have been addressed.
The fact that an infinite loop can cause this issue has also been addressed.
Increasing access to memory when there's a code error causing the consumption will result in disruptions for other users, if you're hosted on a shared server.
Here's a potential cause for your infinite loop, especially if you're using object oriented PHP.
Say you have two classes, one extends the other.
In your __construct
of your child class, you may accidentally type something like this:
public function \__construct($myInitalizingInput){
self::\__construct($myInitalizingInput)
}
Notice the self::
?
It should be parent::
Entering self on accident will result in fork bomb-like conditions.