While I agree that directly pulling things out of superglobals is dangerous, I disagree that it should be removed, lest you end up with a python2/python3 situation.
You can't just run around breaking BC of the language every time something is unideal.
Yes, there are a lot of ways to easily create security holes. This is what code review is for. I'm also not going to advocate abandoning C/C++ because "it's easy to create security holes" i.e. overflows.
You can't just run around breaking BC of the language every time something is unideal.
Yes, there are a lot of ways to easily create security holes. This is what code review is for. I'm also not going to advocate abandoning C/C++ because "it's easy to create security holes" i.e. overflows.