ID:          31739
 Updated by:  [EMAIL PROTECTED]
-Summary:     http://bugs.php.net/report.php notifies you too late on no
              comment closed bugs
 Reported By: diag at cheerful dot com
-Status:      Open
+Status:      Bogus
 Bug Type:    Feature/Change Request
 PHP Version: Irrelevant
 New Comment:

You can unset it with unset($GLOBALS['variable']). Obviously we're not
going to change this as it breaks a damn lot of scripts.


Previous Comments:
------------------------------------------------------------------------

[2005-01-28 09:47:48] diag at cheerful dot com

Description:
------------
The bug report engine of this site lets you happily type in comments on
closed bugs, and tells you only later you cannot comment on closed bugs.
This is annoying.

And not being able to unset globals inside a function the simple way IS
a bug to me, not "bogus". This will bite someone in the ass
security-wise. If you really think globals should be not be unset
inside a function, just the reference, you might just as well ditch the
"globals $.. " directive, and force people to use $localvar=
$GLOBALS['var']; or $localvar= &$GLOBALS['var']; instead, at least
people will then understand what they are doing.

Reproduce code:
---------------
function login(){
  global $loggedin;
  unset($loggedin);//gives unexpected result
...
}



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31739&edit=1

Reply via email to