Re: [PHP] PHP 5 Strings are References?!

2005-04-05 Thread Richard Lynch
On Wed, March 30, 2005 6:48 am, Jochem Maas said: I don't really think that's relevant, however, as PHP is storing $name back *IN* to my $_SESSION data, just because I did: $name = $_SESSION['name']; $name = Fooey; $name is a STRING. It's not an object. It should *NOT* be a Reference!

Re: [PHP] PHP 5 Strings are References?!

2005-03-30 Thread Jochem Maas
Chris wrote: Richard Lynch wrote: On Tue, March 29, 2005 7:58 pm, Chris said: Richard Lynch wrote: ... Are you sure you don't have register_globals enabled? I tested Richards reproduce script on php 5.0.3 on a Debian machine with the following ini settings: register_globals = Off

[PHP] PHP 5 Strings are References?!

2005-03-29 Thread Richard Lynch
Aha! Okay, here's the previous session question boiled down to its simplest: ?php session_start(); if (!isset($_SESSION['name'])){ $_SESSION['name'] = 'Richard Lynch'; } else{ $name = $_SESSION['name']; } /* Assume a ton of code goes here */ $name = 'Fooey'; echo Session

Re: [PHP] PHP 5 Strings are References?!

2005-03-29 Thread Chris
Richard Lynch wrote: On Tue, March 29, 2005 7:58 pm, Chris said: Richard Lynch wrote: Aha! Okay, here's the previous session question boiled down to its simplest: ?php session_start(); if (!isset($_SESSION['name'])){ $_SESSION['name'] = 'Richard Lynch'; } else{ $name =