Is there a way to configure a server to prevent php typo ($i without $i++) infinite loops from happening?

Is there a way to configure a server to prevent php typo ($i without $i++) infinite loops from happening?

Is there a way to configure a server or in php settings to prevent php for loop typo ($i without $i++) infinite loops from happening?

specifically prevent this (sleep-deprived) typo from crashing a server:

for($i=0;$i<count($some_array);$i)

Answer

What topics can I ask about here?

Enjoyed this article?

Check out more content on our blog or follow us on social media.

Browse more articles