Re: some thoughts about php 6

From: Date: Wed, 29 Jan 2014 22:57:41 +0000
Subject: Re: some thoughts about php 6
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
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]

Thread (34 messages)

« previous php.internals (#71761) next »