From: diag at cheerful dot com Operating system: PHP version: Irrelevant PHP Bug Type: Feature/Change Request Bug description: http://bugs.php.net/report.php notifies you too late on no comment closed bugs
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 bug report at http://bugs.php.net/?id=31739&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31739&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31739&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31739&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31739&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31739&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31739&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31739&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31739&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31739&r=support Expected behavior: http://bugs.php.net/fix.php?id=31739&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31739&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31739&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31739&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31739&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31739&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31739&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31739&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31739&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31739&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31739&r=mysqlcfg