Re: Re: RFE: $HTTP_POST_VARS =& $_POST;

From: Date: Fri, 25 Jan 2002 07:33:11 +0000
Subject: Re: Re: RFE: $HTTP_POST_VARS =& $_POST;
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78079@lists.php.net to get a copy of this message
On Fri, 25 Jan 2002, Yasuo Ohgaki wrote: > Rasmus Lerdorf wrote: > > I think the real answer here is to treat these as read-only arrays. ie. > > never use them on the left side of the '=' and you will never run into > > problems. Or if you do, be consistent and use the same array all the > > time. You are writing your code with the assumption that these two arrays > > are the same. Where does this assumption come from? Hopefully not the > > documentation. > > > > -Rasmus > > > > What is the reason for separating $HTTP_*_VARS and $_*? > > For memory wise, if $HTTP_+_VARS and $_* points to the same hash it > would be nicer. The values in these two hashes are shared already I think, and only IF you change a member of those hashes, the value is copied. (copy-on-write principle). > > Are we going to depreciate long track vars? > Does anyone mind if I add ini option "long_track_vars" to turn on and > off long track vars? Why do we need it? Derick --------------------------------------------------------------------- PHP: Scripting the Web - www.php.net - derick@php.net SRM: Site Resource Manager - www.vl-srm.net ---------------------------------------------------------------------

« previous php.dev (#78079) next »