Re: parse_str and session vars
| From: | Thomas Wentzel | Date: | Mon, 04 Mar 2002 09:11:07 +0000 |
| Subject: | Re: parse_str and session vars | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-80682@lists.php.net to get a copy of this message | ||
PHP 4.1.2 std. no CVS
Rasmus Lerdorf wrote:
>
> Which version of PHP? I tested your file123 thing here and it worked just
> fine.
>
> On Mon, 4 Mar 2002, Thomas Wentzel wrote:
>
> > I'm very sorry, but it seems - that the solution with
> > import_request_variables
> > is even worse. I've tried import_request_variables with ("g","f")
> > and
> > ("g","foo")
> > but now foo isn't even set in file2.php (the url arg to file3 is now
> > "bar")
> >
> > Thomas Wentzel wrote:
> > >
> > > OK! Thanks, Rasmus!
> > >
> > > That will allow me to keep working on my current model
> > >
> > > /Thomas
> > >
> > > Rasmus Lerdorf wrote:
> > > >
> > > > Use import_request_variables('g') instead of parse_str($QUERY_STRING)
> > > > for
> > > > now. It does the same thing in your case in a more efficient manner. I
> > > > think the session code is holding a reference to the original data and
> > > > php_treat_data() is not doing the right thing when overwriting existing
> > > > vars. Or something funky like that. It is too late at night to figure this
> > > > particular code out.
> > > >
> > > > -Rasmus
> >
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php