News for hackers. Stuff that matters.
Re:OK, here's the thing: this is only the entrance of the ra... by Fluxx on Tuesday October 19, 2010 @03:16AM (#1806447)
Naming, oh god yes, the naming. Nothing is consistent with naming functions at all. My favorite example of this is the aptly named "parse_str" function:

http://us2.php.net/manual/en/function.parse-str.php

Re:OK, here's the thing: this is only the entrance of the ra... by IgorPartola on Tuesday October 19, 2010 @06:52AM (#1806712)
Ah that one is my favorite. The second parameter is optional, but if you don't pass it in it's a noop. Don't really get where that came from.
Re:OK, here's the thing: this is only the entrance of the ra... by andfarm on Tuesday October 19, 2010 @06:27PM (#1809077)
Ohohoho. No... if you omit the second parameter, PHP sets variables from the query string in your local scope. Surprise! It's register_globals all over again.
Re:OK, here's the thing: this is only the entrance of the ra... by IgorPartola on Sunday October 24, 2010 @08:11AM (#1825941)
Wow. That's so fantastic I can't even describe it. I can't imagine how much buggy software there is out there because of this.