I think PHP has in the past explicitly stated its not a security feature.
There have been a few issues over the years with this.
Anyway - good OS security is required anytime you run software!
heres one from 6 years ago https://bugs.php.net/bug.php?id=76047
I'm struggling to think what it's for then?
Knowing the mess that is the php standard library, I imagine many applications would want to just straight up ban the really bad parts.
Placating some users - mainly shared web hosting providers - who still think that disabling functions like system() and exec() is an effective security measure.
I'm not really familiar with PHP but this seems like a surprising oversight for a popular language. Does PHP just not care about memory corruption? The fact that it is this easy is far more surprising than it being used to circumvent a questionable security feature.
altairprime•1h ago