Re: Very Odd Session Array Problem

From: Date: Mon, 20 Dec 2004 18:28:25 +0000
Subject: Re: Very Odd Session Array Problem
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-204744@lists.php.net to get a copy of this message
Let me see if i can explain this. Basically, if i dont have this chunk of code: $quoteString = implode(",",$_SESSION['quotes'][$key]); $_SESSION['quotes'][$key] = explode(",",$quoteString); If i dont do that, when i do a print_r($_SESSION['quotes'][$key]) i get errors that say RECURSION and its almost like the arrays are making new arrays instead of just storing them in the one session array. It is a very odd problem. Does that make things any clearer? Richard Lynch wrote:
Aaron Axelsen wrote:
We have the chunk of code at the bottom of the page. It is behaving very strangly under php 4.3.9. Basically, if it is not coded exactly as listed below, it will not work right. The development server is running 5.0.3, and it works fine. However, the live server has 4.3.9. Is there something vastly different with arrays and session variables?
You are going to have to define "behaving very strangely" and "will not work right" Right now, we've got *NOTHING* to work with in terms of what your problem is.
-- Aaron Axelsen lists@frozenpc.net Great hosting, low prices. Modevia Web Services LLC -- http://www.modevia.com

« previous php.general (#204744) next »