Re: Classes & function names

From: Date: Fri, 04 May 2001 11:30:41 +0000
Subject: Re: Classes & function names
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53801@lists.php.net to get a copy of this message
[Zeev Suraski <zeev@zend.com>] > I think that there are two ways to look at the issue that John raised. > > One, is a cosmetic change, that would add a bit of bloat to classes, > and retain another name in them. Allowing access to it using some > specialized function (get_beautiful_class_name() or something like > that). > > The other, is a more fundamental change, and it is to change PHP to be > case dependant. PHP 4.0 follows the standard set by PHP/FI 2.0 (or > earlier), and maintains case sensitivity for variable names, but not > function names or class names. IMHO, there's very little reason for > this inconsistency, and PHP would have been better off with full case > sensitivity across class names, function names and variable names. It > would also improve performance fairly significantly. > > IMHO, in a compatibility breaking upgrade, we should look into > defaulting to case sensitivity, while allowing case insensitivity as a > non-default option. Ouch. What about making case sensitivity an option that is disabled by default in 4.1, and changing the default for 4.2. IMHO changing this default alone is enough to warrant the 4.1 -> 4.2 transition. - Stig -- Stig Sæther Bakken <ssb@fast.no> Fast Search & Transfer ASA, Trondheim, Norway

« previous php.dev (#53801) next »