Re: Very Odd Session Array Problem

From: Date: Mon, 20 Dec 2004 19:11:56 +0000
Subject: Re: Very Odd Session Array Problem
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-204751@lists.php.net to get a copy of this message
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
If you have a SESSION['quotes'] array... and one of the elements in the array references the same SESSION['quotes'] array... then you are going to have recursion. It's not exactly an error, but it *is* a recursive array that never ends because it keeps pointing to itself. Hopefully this makes sense?

« previous php.general (#204751) next »