Re: [phplib] parse error in session.inc From: darrylross (darrylross <email protected>)
Date: 03/30/01

On Fri, Mar 30, 2001 at 02:16:19PM -0800, Daniel Bondurant wrote:
> I get the following problem when I am dealing with really large session
> variables.
> It happens vary rarely, but it is defintally related to session variable
> size.
>
> Parse error: parse error in /home/phplib/php/session.inc(329) : eval()'d
> code on line 418
>
> anyone know how to get around this?

I got this error when my session data become larger than the database field
size used to store the session data (eg 64k for the text field in MySQL).
As the data was larger than my database field it was been truncated, so
when it got thawed, the unserialized data was incomplete and hence gave a
parse error when eval()'d.

My solution was to use ct_split_sql.inc.

Darryl

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>