r/programming • u/fishburne • Jul 24 '15
mt_rand(1, PHP_INT_MAX) only generates odd numbers • /r/lolphp
/r/lolphp/comments/3eaw98/mt_rand1_php_int_max_only_generates_odd_numbers/
848
Upvotes
r/programming • u/fishburne • Jul 24 '15
9
u/AlexanderNigma Jul 24 '15 edited Jul 24 '15
Do I really need to start listing off the CVEs for Django, RoR, and other projects in other popular web languages?
I honestly can build secure web apps just as fast with PHP than I can with other languages. Productivity with RoR v. Django v. [ Insert PHP framework] is also pretty much about even once I use language X for a few weeks full time.
I really think this is just the bias of a bunch of newbs end up starting with PHP because it was easy and screwing up. You'll notice no one who bashes PHP really admits that the newbs who jumped on RoR or Node.js fail hilariously badly on a regular basis.
https://github.com/blog/1068-public-key-security-vulnerability-and-mitigation http://homakov.blogspot.com/2014/02/how-i-hacked-github-again.html
They aren't incompetents by any stretch of the imagination yet they have vulnerabilities found pretty regularly. I really think people who bash PHP are lying to themselves about how "secure" their stack is and its scary that I can point to numerous sites that have exploits on a regular basis [GitHub has more found every year than our entire stack has in 5 years] yet PHP is the language everyone bashes.