4 ms·
> This is profoundly ridiculous. It's the equivalent of saying Home Depot shouldn't sell power tools because some do-it-yourselfer might saw his foot off. You'
by acdha 13y ago
> This is profoundly ridiculous. It's the equivalent of saying Home Depot shouldn't sell power tools because some do-it-yourselfer might saw his foot off.
You're incorrectly characterizing the argument: it's actually like saying Home Depot shouldn't sell power tools without safety guards, fuses, emergency shutoffs, SawStop, etc. PHP has a number of misfeatures which make it extremely easy for all but the most vigilant of developers to make mistakes with security consequences (https://eval.in/108854 https://eval.in/108854 was making the rounds just this morning) or simply increasing the likelihood of creating bugs (i.e. the inconsistent parameter ordering across the similar array_* functions). Most of these complaints date back to the late 90s but now are much harder to make both because the core developers don't take them seriously and because there's now a huge backwards compatibility problem.
The most interesting development in PHP is the HHVM hack mode or similar concepts where an actively-maintained codebase can opt-in to safer behaviour. For the sake of anyone who has to secure code on the internet, I hope this catches on.
EDIT: See slide 15 onward in http://www.slideshare.net/skamerman/ipc-2013-high-performance-php-with-hiphop http://www.slideshare.net/skamerman/ipc-2013-high-performanc...
- fleitz 13y agoHere's all you really need to know with PHP, ask a PHP developer how to test for equality. Maybe how you test for equality shouldn't depend on an ini file... just sayin... Perhaps testing for equality doesn't need a 3 page answer... in most languages it's a pretty straightforward answer... primitive types use == and objects use either isEquals or operator overloading.
- xd 13y agoWhat do you mean by depend on an ini file? I wasn't aware there was any settings for equality testing there..
- codygman 13y agoI'm as critical of PHP as anyone, but I couldn't find any settings to change how equality works in the language here: http://www.php.net/manual/en/ini.list.php http://www.php.net/manual/en/ini.list.php