Hi!
the topic says most of it. What do you think about deprecating the global keyword and $GLOBALS with it? Together with this making
No, I think it's a bad idea. I know over-using globals is bad, but they still have their uses and huge amount of apps is using them one way or another.
$_REQUEST, $_GET and $_POST read-only as they should be used only to read-only anyway.
This would probably be bad for tests on many applications, and quite big BC break.
The reason for global + GLOBALS is that these are abused and which leads to spaghetti programs, when used by unexperienced users. Also they have impact on side effects from functions that don't only rely their parameters.
I don't believe you can B&D users into a good code. Java has tons of awful code.
-- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php