#38377 [Asn->Csd]: session_destroy() gives warning after session_regenerate_id()

From: Date: Tue, 08 Aug 2006 14:57:42 +0000
Subject: #38377 [Asn->Csd]: session_destroy() gives warning after session_regenerate_id()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100527@lists.php.net to get a copy of this message
ID: 38377 Updated by: iliaa@php.net Reported By: dhrubab at gmail dot com -Status: Assigned +Status: Closed Bug Type: Session related Operating System: Linux PHP Version: 5.1.4 Assigned To: iliaa New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-08-08 09:09:54] dhrubab at gmail dot com 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 this bug report at http://bugs.php.net/?id=38377&edit=1

« previous php.bugs (#100527) next »