PHP 4.0 Bug #9176 Updated: Feature request: Sessions & reference variables

From: Date: Tue, 20 Feb 2001 18:54:02 +0000
Subject: PHP 4.0 Bug #9176 Updated: Feature request: Sessions & reference variables
Groups: php.dev 
Request: Send a blank email to php-dev+get-47080@lists.php.net to get a copy of this message
ID: 9176 Updated by: sas Reported By: mccleary@efn.org Old-Status: Open Status: Closed Bug Type: *Session related Assigned To: Comments: This has been implemented by Stas in 4.0.4. Previous Comments: --------------------------------------------------------------------------- [2001-02-08 13:35:56] mccleary@efn.org Not a bug report but a feature request (the link sent me here...) It'd be nice if session variables that are references stayed references throughout a session. Ex: page1.php: session_start(); session_register("a"); session_register("b"); $a = 4; $b = &$a; print "a = $a, b = $b"; page2.php $a = 7; print "a = $a, b = $b"; ----- In page1 it works as expected, but in page2 $b is no longer a reference to $a, they both just have the same value at the beginning of the script. It's be nice if $b stayed a reference to $a throughout the session. Don't know how plausible that is though. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9176&edit=2

« previous php.dev (#47080) next »