Bug #68063: session-related, how to fix it?
| From: | Florian Margaine | Date: | Sat, 20 Sep 2014 15:35:44 +0000 |
| Subject: | Bug #68063: session-related, how to fix it? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-77387@lists.php.net to get a copy of this message | ||
Hi list,
I saw this interesting bug: https://bugs.php.net/bug.php?id=68063
Basically, if
session_id('') is run before session_start(),
weird
things happen.
The bug reporter proposes 2 ways to fix this:
- session_start() should silently fix the situation
- or session_start() should noisely fail
Both solutions look fine to me, but I'm not sure what PHP should do. Should
it be resilient and silently fix the situation?
Regards,
*Florian Margaine*