Bug #13834 Updated: SID already defined
| From: | yohgaki@php.net | Date: | Thu, 20 Dec 2001 03:53:16 +0000 |
| Subject: | Bug #13834 Updated: SID already defined | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74509@lists.php.net to get a copy of this message | ||
ID: 13834
Updated by: yohgaki
Reported By: shelby@DownloadFAST.com
Old Status: Open
Status: Feedback
Bug Type: Session related
Operating System: FreeBSD 4.2
PHP Version: 4.0.6
New Comment:
Please test with 4.1.0 and latest CVS snapshot.
CVS snapshot source can be found
http://snaps.php.net/
(No windows binary)
If you don't have problem with latest CVS snapshot,
you can close your bug report by yourself.
Please report the result. When you update your bug
report, do not forget updating PHP version also.
Thank you
--
Yasuo
Previous Comments:
------------------------------------------------------------------------
[2001-10-26 01:30:56] shelby@DownloadFAST.com
This is intended as more information for Bug id #11643. I could not make comments directly as I am
not the creator of the bug and I don't have Dev Edit privilegdes either.
In any case, the redefinition is apparently session_start(). If I do more than one session_start(),
separated by a session_destroy(), then I get warning:
Warning: Constant sid already defined in /usr/home/smoore/php-include/Session_class.php on line 80
I am sure it is session_start() because the following makes the warning go away:
$save = error_reporting( E_ERROR ); // temporarily turn off warnings
session_start();
error_reporting( $save );
Obviously the fix is to undefine SID in session_destroy. However, there is no undefine in PHP is
there?
It must be redefined because the original session has been destroyed and the new one has a new
session_id().
This doesn't bother my code because I don't use SID.
Hope this helps...
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=13834&edit=1