From: dhrubab at gmail dot com Operating system: Linux PHP version: 5.1.4 PHP Bug Type: Session related Bug description: session_destroy() gives warning after session_regenerate_id()
Description: ------------ If you call session_destroy() after calling session_regenerate_id() then it results in a warning. This should not be the case. My entire php configuration is at the following url as a static html file. http://static.dhruba.net/php/phpinfo.php.html Kindly help me fix this bug for the next 5.x release. Thanks. Reproduce code: --------------- session.php <?php session_start(); session_regenerate_id(); session_destroy(); ?> Expected result: ---------------- I expect to see nothing because it worked. Actual result: -------------- I see the following error message. Warning: session_destroy() [function.session-destroy]: Session object destruction failed in session.php on line 4 -- Edit bug report at http://bugs.php.net/?id=38377&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38377&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38377&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38377&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38377&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38377&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38377&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38377&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38377&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38377&r=support Expected behavior: http://bugs.php.net/fix.php?id=38377&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38377&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38377&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38377&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38377&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38377&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38377&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38377&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38377&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38377&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38377&r=mysqlcfg