|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-28 09:54 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 18:00:01 2025 UTC |
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 ... }