Bug #70871 [Asn]: session_regenerate_id(): Failed to create session ID: user (path: )

From: Date: Tue, 10 Nov 2015 01:55:12 +0000
Subject: Bug #70871 [Asn]: session_regenerate_id(): Failed to create session ID: user (path: )
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-197144@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70871&edit=1

 ID:                 70871
 Updated by:         yohgaki@php.net
 Reported by:        jacky at xsteach dot com
 Summary:            session_regenerate_id(): Failed to create session
                     ID: user (path: )
 Status:             Assigned
 Type:               Bug
 Package:            Session related
 Operating System:   mac os x
 PHP Version:        7.0.0RC6
 Assigned To:        yohgaki
 Block user comment: N
 Private report:     N

 New Comment:

@laruence

Yes. Session becames inactive by calling session_destroy(). Therefore, session_regenerate_id()
complains about bogus call as it requires active session to be useful.


Previous Comments:
------------------------------------------------------------------------
[2015-11-08 07:24:26] bellosthomas at gmail dot com

Similar problem here
I have a custom session handler storing session in memcache
However, when I invoke session_regenerate_id(true), I get a fatal error
Catchable fatal error: session_regenerate_id(): Failed to create session ID: user

------------------------------------------------------------------------
[2015-11-06 14:42:19] laruence@php.net

this should be a intentional change, https://github.com/php/php-src/commit/e93042998af1fea9204e17bc5cdd13c702156d5b

@yohgaki ?

------------------------------------------------------------------------
[2015-11-06 11:36:07] jacky at xsteach dot com

Description:
------------
before php7RC3,the test script is working well,but a warning is throw after php7RC2.

Test script:
---------------
session_start();
session_destroy();
session_regenerate_id(true);

Expected result:
----------------
output nothing

Actual result:
--------------
Warning: session_regenerate_id(): Cannot regenerate session id


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70871&edit=1


Thread (15 messages)

« previous php.bugs (#197144) next »