Electronics & Programming


Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only [RSS Feed]

#1 Dec. 9, 2010 10:15:41

Andrey H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only

Hi guys,the topic says most of it. What do you think about deprecating theglobal keyword and $GLOBALS with it? Together with this making$_REQUEST, $_GET and $_POST read-only as they should be used only toread-only anyway.The reason for global + GLOBALS is that these are abused and which leadsto spaghetti programs, when used by unexperienced users. Also they haveimpact on side effects from functions that don't only rely their parameters.Best,

PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php


  • Root
  • » PHP
  • » Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only [RSS Feed]

Board footer

Moderator control

Enjoy the 11th of December

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support