Bug #65475 [Asn]: wrong session cookie is generated on session.use_strict_mode
| From: | yohgaki@php.net | Date: | Tue, 20 Aug 2013 20:53:08 +0000 |
| Subject: | Bug #65475 [Asn]: wrong session cookie is generated on session.use_strict_mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-181066@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65475&edit=1
ID: 65475
Updated by: yohgaki@php.net
Reported by: php at tokumaru dot org
Summary: wrong session cookie is generated on
session.use_strict_mode
Status: Assigned
Type: Bug
Package: Session related
Operating System: Ubuntu
PHP Version: 5.5.2
Assigned To: yohgaki
Block user comment: N
Private report: N
New Comment:
It is passing uninitialized PS(id). I'll look into what's wrong.
Previous Comments:
------------------------------------------------------------------------
[2013-08-20 00:54:13] william dot a dot bartlett at gmail dot com
Could not reproduce using Fedora 19 PHP 5.5.1 - possible regression.
------------------------------------------------------------------------
[2013-08-19 03:17:03] php at tokumaru dot org
Description:
------------
In the case of session.use_strict_mode = On, a wrong session cookie is generated.
Test script:
---------------
<?php
session_start();
$_SESSION['msg'] = 'hello';
echo 'session_id: ' . session_id();
Expected result:
----------------
A valid session cookie is generated.
Actual result:
--------------
A wrong session cookie is generated.
The HTTP Response (Summary):
HTTP/1.1 200 OK
Set-Cookie: PHPSESSID=de3vsil36bfs3829rhnspq0oo7; path=/
Content-Length: 38
Content-Type: text/html
session_id: ocjalnfd088dd90eppb1hr14h3
The Session File:
$ sudo cat /tmp/sess_ocjalnfd088dd90eppb1hr14h3
msg|s:5:"hello";
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65475&edit=1