From:             don at onlygeeks dot com
Operating system: Windows 2000
PHP version:      4.3.1
PHP Bug Type:     Unknown/Other Function
Bug description:  _SESSION foreach problem

I commonly use a foreach to set my POST array into normal variables.

 foreach($_POST as $key=>$value)
   ${$key} = $value;

but, when I tried this to unset sessions (code follows), PHP.EXE pops up a
window and declares it has to close.

 foreach($_SESSION as $key)
   unset($_SESSION[$key])

I know I could go a better way about doing this, and I have. I just
thought I would share this bit of information with you. :)

Good day.
-- 
Edit bug report at http://bugs.php.net/?id=24029&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24029&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24029&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24029&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24029&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24029&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24029&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24029&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24029&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24029&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24029&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24029&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24029&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24029&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24029&r=gnused

Reply via email to