|
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] [email protected]
[2015-07-09 09:16 UTC] [email protected]
[2015-07-10 09:06 UTC] [email protected]
[2015-07-10 14:53 UTC] [email protected]
[2015-07-11 06:38 UTC] [email protected]
[2015-07-11 06:39 UTC] [email protected]
[2015-07-11 20:44 UTC] [email protected]
[2015-07-13 02:17 UTC] [email protected]
-Assigned To:
+Assigned To: yohgaki
[2015-07-13 02:21 UTC] [email protected]
[2015-07-13 16:09 UTC] [email protected]
[2015-07-21 09:47 UTC] [email protected]
[2015-08-08 22:15 UTC] [email protected]
[2015-09-06 05:53 UTC] [email protected]
[2015-09-06 18:58 UTC] [email protected]
[2015-09-06 18:58 UTC] [email protected]
-Status: Assigned
+Status: Closed
[2015-09-15 06:22 UTC] [email protected]
[2015-09-15 12:13 UTC] [email protected]
[2016-07-20 11:36 UTC] [email protected]
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 25 07: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)