note 32078 added to function.unset
| From: | gabe at mudbuginfo dot com | Date: | Thu, 15 May 2003 17:02:38 +0000 |
| Subject: | note 32078 added to function.unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48026@lists.php.net to get a copy of this message | ||
A bug exists in when attempting to unset() a $_SESSION variable while register globals is turned on.
unset($_SESSION['variable']); // will only work with register globals off
unset( $_SESSION['variable'], $variable ); // will work with register globals on
This is detailed in http://bugs.php.net/bug.php?id=19586 but has not
been fixed as of PHP 4.3.0
--
http://www.php.net/manual/en/function.unset.php
http://master.php.net/manage/user-notes.php?action=edit+32078
http://master.php.net/manage/user-notes.php?action=delete+32078
http://master.php.net/manage/user-notes.php?action=reject+32078