the new E_ANAL error_reporting setting
Published 2005-02-22 10:57:28
After quite a few chats on various php-irc developer channels, it looks like PHP is going to be getting a new error_reporting level, E_ANAL.
while E_STRICT has been quite sucessfull in getting people to migrate from C# and Java, there is a sense that it is not quite complete. Apparently quite a number of them are missing their fatal exceptions on mundane issues). hence the new planned E_ANAL notices will start appearing when
Developers are still open to new ideas for it.
while E_STRICT has been quite sucessfull in getting people to migrate from C# and Java, there is a sense that it is not quite complete. Apparently quite a number of them are missing their fatal exceptions on mundane issues). hence the new planned E_ANAL notices will start appearing when
- you forget to declare a variable type before using it. (just giving it a default value doesnt count)
- you try and do boolean tests on strings, integers, object (or anything that isnt a boolean)
- string comparison on non-strings (although I'm tempted to suggest this for E_STRICT)
- you declare a function (that's not part of a class)
- you forget to put the return type of a method.
- you forget to wrap a method call that can throw an exception in a try{ } catch block.
- you make any property public (only available with the E_ANAL_JAVA extension).
- any usage of PHP native array's or array functions.
- any method call that does not involve at least 3 objects.
- using any variable name that matches a object or method name anywhere in the imported methods or functions.
Developers are still open to new ideas for it.
yes - it's a joke :)
Mentioned By:
google.com : february (112 referals)
joona.fiveam.org : v p (33 referals)
www.midgard-project.org : PHPDeveloper.org: PHP News, Views, and Community... (29 referals)
richardathome.no-ip.com : Richard@Home : Welcome :-) (17 referals)
google.com : december (17 referals)
www.sitepoint.com : SitePoint Forums - What methods do YOU use to debug/test your code? (15 referals)
richardathome.no-ip.com : Richard@Home : PHP - Articles and Bookmarks (12 referals)
www.artima.com : PHP Buzz Forum - the new E_ANAL error_reporting setting (7 referals)
laacz.lv : Archivs (ļāūņš ļāčīš) (7 referals)
google.com : E_ANAL (7 referals)
my.yahoo.com : IRC Log for #peragro on irc.freenode.net, collected by PT_log-bot (5 referals)
laacz.lv : Around the web in 80 days #4 (ļāūņš ļāčīš) (5 referals)
google.com : error_reporting (5 referals)
google.com : november (5 referals)
www.livejournal.com : Max 'AMiGo' Gashkov's Journal (4 referals)
planet-php.org : My daily fix (4 referals)
google.com : 1935713 (4 referals)
google.com : E_STRICT php (4 referals)
google.com : php E_ANAL (4 referals)
forum.domonet.ru : @ (4 referals)
google.com : february (112 referals)
joona.fiveam.org : v p (33 referals)
www.midgard-project.org : PHPDeveloper.org: PHP News, Views, and Community... (29 referals)
richardathome.no-ip.com : Richard@Home : Welcome :-) (17 referals)
google.com : december (17 referals)
www.sitepoint.com : SitePoint Forums - What methods do YOU use to debug/test your code? (15 referals)
richardathome.no-ip.com : Richard@Home : PHP - Articles and Bookmarks (12 referals)
www.artima.com : PHP Buzz Forum - the new E_ANAL error_reporting setting (7 referals)
laacz.lv : Archivs (ļāūņš ļāčīš) (7 referals)
google.com : E_ANAL (7 referals)
my.yahoo.com : IRC Log for #peragro on irc.freenode.net, collected by PT_log-bot (5 referals)
laacz.lv : Around the web in 80 days #4 (ļāūņš ļāčīš) (5 referals)
google.com : error_reporting (5 referals)
google.com : november (5 referals)
www.livejournal.com : Max 'AMiGo' Gashkov's Journal (4 referals)
planet-php.org : My daily fix (4 referals)
google.com : 1935713 (4 referals)
google.com : E_STRICT php (4 referals)
google.com : php E_ANAL (4 referals)
forum.domonet.ru : @ (4 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