Hi all,

I have a problem that I loose connection_id (i.e. it gets set to 0) when I
propagate object through session.
This results in an error message when I use this connection.

Warning: Supplied argument is not a valid PostgreSQL link resource

Object has member variable $db which is of PEAR_DB type.

method:
function openDB() {

        $this->db = DB::connect($dsn, true);
        if (DB::isError($db))
        {
            die($db->getMessage());
        }
}

So every time I deserialize this object from session I have to call openDB
method first.

Thanks,

Hrvoje



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to