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

php
Ethan JacksonIs 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?