News for hackers. Stuff that matters.
Re:The new PHP by acdha on Tuesday March 04, 2014 @09:35AM (#7340364)
> 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 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-performanc...

Re:The new PHP by fleitz on Tuesday March 04, 2014 @02:03PM (#7342306)
Here'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.

Re:The new PHP by codygman on Tuesday March 04, 2014 @04:35PM (#7343351)
I'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

Re:The new PHP by xd on Tuesday March 04, 2014 @02:23PM (#7342425)
What do you mean by depend on an ini file? I wasn't aware there was any settings for equality testing there..