From:             [EMAIL PROTECTED]
Operating system: Linux 2.2.17
PHP version:      4.0.3pl1
PHP Bug Type:     *Session related
Bug description:  Feature request: Sessions & reference variables

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:

session_register("a"); session_register("b");
$a = 4;
$b = &$a;
print "a = $a, b = $b";

$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.

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to