Re: References

From: Date: Thu, 13 Jul 2000 09:43:19 +0000
Subject: Re: References
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24425@lists.php.net to get a copy of this message
I need the original name so I can rereference it. Its for use with sessions. ---- page1 --- $string = "tesT"; $blah= &$string; session_register("string"); session_register("blah"); // reference to string; ---- page2 --- session_start(); print $blah; // outputs "tesT" $string = "Yada"; print $blah; // outputs "tesT" want "Yada"; On Thu, 13 Jul 2000, Wico de Leeuw wrote: > At 12:32 13-7-00 +0300, Stanislav Malyshev wrote: > >MK(>> Some guy (perhaps you know him Placebo on $php), wants to serialize > >MK(>> referenced variables.. thus it serialize should return something like > > > >You probably can't do it. Did you ever try to copy hardlinked files? :) (I > >did as an assignment back in university. Ugly stuff :) > > > Hiya > > Maybe a stupid vision of me, but since you can access the value of the > referenced var (hardlinked file) why bother what the old name was, you know > what the name now is. > > P.S Correct me if im wrong > > Just my 2 cents > > Greetz, > > Wico > > > >-- > >Stanislav Malyshev stas@zend.com > >+972-3-6139665 > > > > > >-- > >PHP Development Mailing List <http://www.php.net/> > >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > >For additional commands, e-mail: php-dev-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#24425) next »