[nycphp-talk] Incomplete Objects, Class Definitions and require_once
Michael B Allen
ioplex at gmail.com
Sun Aug 5 22:09:20 EDT 2007
> Hi Brent,
>
> Well I figured out what the problem was. I was putting an 'Auth'
> object in the session. I made some changes to something that
> invalidated the class definition of that object. As soon as I logged
> out the Auth object in the session was reinstantiated and the error
> went away. No big deal.
Actually I've pinpointed the problem a little more. It seems you must
require_once the class of the object stored in the session before
calling session_start. I guess session_start is deserializing things
and if the class definition isn't available it defaults to an
incomplete type.
Mike
More information about the talk
mailing list