79722951

Date: 2025-08-01 21:06:01
Score: 0.5
Natty:
Report link

Trouble shooting the infinite loop

  1. Configuration files have been addressed.

  2. The fact that an infinite loop can cause this issue has also been addressed.

  3. 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.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mornig Star