Date: 01/05/01
- Next message: max: "[phplib-dev] cvs commit"
- Previous message: max: "[phplib-dev] cvs commit"
- Next in thread: max: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: max
Date: Fri Jan 5 09:57:59 2001
Modified files:
php-lib/php/user4.inc
Log message:
entries in user vars_array are references pointing to global vars in the case
User::register_globals is set to true
Index: php-lib/php/user4.inc
diff -u php-lib/php/user4.inc:1.1 php-lib/php/user4.inc:1.2
--- php-lib/php/user4.inc:1.1 Thu Jan 4 16:36:45 2001
+++ php-lib/php/user4.inc Fri Jan 5 09:57:28 2001
@@ -6,7 +6,7 @@
* Boris Erdmann, Kristian Koehntopp
* Copyright (c) 2001, Maxim Derkachev <kot <email protected>>
*
- * $Id: user4.inc,v 1.1 2001/01/04 15:36:45 max Exp $
+ * $Id: user4.inc,v 1.2 2001/01/05 08:57:28 max Exp $
*
*/
@@ -119,6 +119,7 @@
reset ($GLOBALS[$this->vars_array]);
while (list ($k, $v) = each ($GLOBALS[$this->vars_array])) {
$GLOBALS[$k] = $v;
+ $GLOBALS[$this->vars_array][$k] =& $GLOBALS[$k]; // change the entry in user vars array, so it is now a reference pointing to a global variable.
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected>
For additional commands, e-mail: phplib-dev-help <email protected>
- Next message: max: "[phplib-dev] cvs commit"
- Previous message: max: "[phplib-dev] cvs commit"
- Next in thread: max: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

