Changes to case sensitivity in PHP
Published 2004-04-01 09:59:51
After rather heated discussions on IRC over the last week, concerning StudlyCaps naming and php core. The core php developers (from what I saw) appear to be close to agreeing on some changes for PHP5.1
Alot of the discussion centered around the impact this may have on old code, In general it was the concensus that it would only break really bad code hosted on sourceforge, which wouldnt be a complete disaster..
I have to admit it was pretty rare to see such agreement in such an argumentative group, but they considered consitency to be the ultimate goal, and it would make the life fo developers considerably easier.
Some of the core deadlines in the strategy are
In the meantime, they do recommend that if you are using any of the existing under_scored methods, that you write short wrappers to ensure that when they are removed in PHP5.1, that your applications work:
eg.
- Finally we will get Case sensitive functions / methods
- the _ underscore naming convention for PHP functions will be gradually replaced with StudlyCaps for all objects, methods and functions.
Alot of the discussion centered around the impact this may have on old code, In general it was the concensus that it would only break really bad code hosted on sourceforge, which wouldnt be a complete disaster..
I have to admit it was pretty rare to see such agreement in such an argumentative group, but they considered consitency to be the ultimate goal, and it would make the life fo developers considerably easier.
Some of the core deadlines in the strategy are
- Changing the manual to add the extra 500+ functions, and make the old ones redirect to new ones, (eg. going to www.php.net/array_count would redirect automatically to www.php.net/arrayCount) this is expected to be complete by July
- For adding the aliases in, Lukas Smith was unanomously nominated to undertake the code changes, normally a core PEAR developer this will be his first major expedition into the C source code. it is expected that this will be completed by November.
In the meantime, they do recommend that if you are using any of the existing under_scored methods, that you write short wrappers to ensure that when they are removed in PHP5.1, that your applications work:
eg.
if (!function_exists('array_count')) {
function array_count($a) { return arrayCount($a); }
}
Mentioned By:
google.com : april (106 referals)
google.com : php case sensitivity (71 referals)
google.com : php function case sensitive (59 referals)
google.com : php functions case sensitive (57 referals)
google.com : PHP case (42 referals)
google.com : php5 case sensitive (40 referals)
www.schlitt.info : IBM takes over Zend - Tobias Schlitt - Weblog (32 referals)
google.com : php case sensitive functions (26 referals)
google.com : php case sensitive function (24 referals)
google.com : case sensitivity in php (23 referals)
google.com : php function case sensitivity (22 referals)
google.com : php methods case sensitive (18 referals)
google.com : december (16 referals)
google.com : php5 case sensitivity (15 referals)
www.schlitt.info : PHP april fools... - Tobias Schlitt - Weblog (13 referals)
google.com : php 5 case sensitive (10 referals)
google.com : case sensitivity php (9 referals)
google.com : php functions case-sensitive (9 referals)
blog.goranrakic.com : Moja škrabalica: Prvoaprilske šale (9 referals)
google.com : php case sensitive methods (8 referals)
google.com : april (106 referals)
google.com : php case sensitivity (71 referals)
google.com : php function case sensitive (59 referals)
google.com : php functions case sensitive (57 referals)
google.com : PHP case (42 referals)
google.com : php5 case sensitive (40 referals)
www.schlitt.info : IBM takes over Zend - Tobias Schlitt - Weblog (32 referals)
google.com : php case sensitive functions (26 referals)
google.com : php case sensitive function (24 referals)
google.com : case sensitivity in php (23 referals)
google.com : php function case sensitivity (22 referals)
google.com : php methods case sensitive (18 referals)
google.com : december (16 referals)
google.com : php5 case sensitivity (15 referals)
www.schlitt.info : PHP april fools... - Tobias Schlitt - Weblog (13 referals)
google.com : php 5 case sensitive (10 referals)
google.com : case sensitivity php (9 referals)
google.com : php functions case-sensitive (9 referals)
blog.goranrakic.com : Moja škrabalica: Prvoaprilske šale (9 referals)
google.com : php case sensitive methods (8 referals)
Follow us
-
- Some thoughts on the language server and its usefulness in the roobuilder
- Roo Builder for Gtk4 moving forward
- Clustered Web Applications - Mysql and File replication
- GitLive - Branching - Merging
- PDO_DataObject Released
- PDO_DataObject is under way
- Mass email Marketing and anti-spam - some of the how-to..
- Hydra - Recruitment done right
Blog Latest
-
Twitter - @Roojs