|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-07-08 07:06 UTC] stloyd at o2 dot pl
[2015-07-08 15:10 UTC] bwoebi@php.net
[2015-07-09 09:16 UTC] tyrael@php.net
[2015-07-10 09:06 UTC] mike@php.net
[2015-07-10 14:53 UTC] laruence@php.net
[2015-07-11 06:38 UTC] mike@php.net
[2015-07-11 06:39 UTC] mike@php.net
[2015-07-11 20:44 UTC] ab@php.net
[2015-07-13 02:17 UTC] yohgaki@php.net
-Assigned To:
+Assigned To: yohgaki
[2015-07-13 02:21 UTC] yohgaki@php.net
[2015-07-13 16:09 UTC] kalle@php.net
[2015-07-21 09:47 UTC] ab@php.net
[2015-08-08 22:15 UTC] ab@php.net
[2015-09-06 05:53 UTC] yohgaki@php.net
[2015-09-06 18:58 UTC] yohgaki@php.net
[2015-09-06 18:58 UTC] yohgaki@php.net
-Status: Assigned
+Status: Closed
[2015-09-15 06:22 UTC] ab@php.net
[2015-09-15 12:13 UTC] ab@php.net
[2016-07-20 11:36 UTC] davey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 21:00:02 2025 UTC |
Description: ------------ If a reference to $_SESSION is assigned to another variable, it is lost after a call to session_regenerate_id(). It is not lost in previous PHP versions, and Symfony's HttpFoundation actually relies on this behaviour. php -v PHP 7.0.0-dev (cli) (built: Jul 7 2015 22:52:27) (DEBUG) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies Test script: --------------- session_start(); $session = &$_SESSION; $session['test'] = 1; session_regenerate_id(false); $session['test'] = 2; // dumps false, should be true var_dump($session['test'] === $_SESSION['test']); Expected result: ---------------- bool(true) Actual result: -------------- bool(false)