[php-src] Issue #12408: Session constant SID changes its value
| From: | jorgsowa | Date: | Tue, 10 Oct 2023 21:49:51 +0000 |
| Subject: | [php-src] Issue #12408: Session constant SID changes its value | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245536@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12408
Author: jorgsowa
### Description
I'm not sure how to classify this problem, but the constant SID changes its value during the
request. I understand the logic behind the changes, but that's just against the rules what
constant is. It shouldn't change it's value.
Example:
https://3v4l.org/4s0Nm
```
$isd0 = defined('SID');
ini_set('session.use_cookies', 0);
ini_set('session.use_only_cookies', 0);
session_start();
$sid1 = SID;
session_destroy();
session_start();
$sid2 = SID;
var_dump($isd0);
var_dump($sid1);
var_dump($sid2);
```
### PHP Version
All versions
### Operating System
_No response_