On 28/01/2014 16:34, Kristopher wrote:
Really? I'd definitely love to see it for class and function names. Have
you ever tried to deploy or develop an application with a team on different
operating systems, and had the entire code puke because someone
accidentally did casing wrong on a class name and the autoloader barfed
trying to load the file on a case-sensitive operating system?
Why not just make your filenames all lowercase and use strtolower() in the autoloader?
Seems like "someclassname.php" wouldn't be such an awful filename for "class SomeClassName" if you can't rely on consistency of case handling in the OS.
While I can kind of see the point, the case-sensitive check would still presumably be made at run-time, so you'd still need to ensure you had case coverage in case someone wrote CLassName in a branch of code they didn't actually execute.
--
Rowan Collins
[IMSoP]