RE: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols

From: Date: Sun, 21 Dec 2014 00:31:09 +0000
Subject: RE: [PHP-DEV] Proposal for PHP 7 : case-sensitive symbols
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-79832@lists.php.net to get a copy of this message
> De : Andrea Faulds [mailto:ajf@ajf.me] > I’d thought of doing this before, but the backwards-compatibility cost is too > high. It is a BC break, I agree, but would the impact on PHP community be so high ? I have never seen any PHP code which would rely on function/class names case-insensitivity. I tested this with Automap, a map-based autoloader, modified to work in a case-sensitive manner. I tested most PHP frameworks and libraries and none of them had case mismatches. There are some, probably, but I guess that most, if not all, are undetected typos. Can't we consider such a mismatch as a bug ? That's what any normal programmer would think, IMHO. So, I think that such a BC break on a problematic syntax is acceptable, and would even help clean some PHP code. What we can do to minimize the BC break, in the spirit of the migration path discussed these last days, is to introduce an E_STRICT warning in version 5.7, which would help programmers prepare their code for PHP 7. Regards François

« previous php.internals (#79832) next »