No way to prevent this, says only language where this regularly happens

Criticals happen in other languages all the time. You are seeing this with PHP in the news because it's used on 70% of the Internet.