#36872 [NEW]: session_destroy() fails after call to session_regenerate_id()
From: chris at dented-planet dot net
Operating system: mac os x 10.3.9
PHP version: 5.1.2
PHP Bug Type: Session related
Bug description: session_destroy() fails after call to session_regenerate_id()
Description:
------------
Calling session_destroy() after call to session_regenerate_id() results in
the failed session destruction and the following warning:
Warning: session_destroy() [function.session-destroy]: Session object
destruction failed...
If I remove the call to session_regenerate() then session_destroy() works
correctly.
Reproduce code:
---------------
<?php
ob_start()
session_start();
//some code
session_regenerate_id(true);
//some code
session_destroy();
ob_end_flush();
?>
Expected result:
----------------
Session should be destroyed
Actual result:
--------------
Warning: session_destroy() [function.session-destroy]: Session object
destruction failed...
--
Edit bug report at http://bugs.php.net/?id=36872&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36872&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36872&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36872&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36872&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36872&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36872&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36872&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36872&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36872&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36872&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36872&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36872&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36872&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36872&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36872&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36872&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36872&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36872&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36872&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36872&r=mysqlcfg
Thread (4 messages)
- chris at dented-planet dot net