Date: 10/30/99
- Next message: Kristian Koehntopp: "Re: [PHPLIB] Function nextid() with PostgreSql"
- Previous message: LRJ: "[PHPLIB] PHPLIB and MySQL"
- In reply to: phplib-list <email protected>: "[PHPLIB] problems with session.inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Oct 29, 1999 at 04:08:12PM -0700, phplib-list <email protected> wrote:
> Ok I am trying to upgrade from phplib 6.? to 7.2 and I get the following
> error when I try to use my existing pages:
> Fatal error: Cannot instanciate non-existant class: in /usr/local/apache/php-7.2/session.inc on line 377
PHPLIB-7.x uses a different organisation of classes around the
Session storage. Please check the new local.inc file that came
with 7.2 and read about storage container classes. You must
certainly want to use a subclass of CT_Sql from ct_sql.inc in
your local.inc.
The migration is easy: Just add
class Example_CT_Sql extends CT_Sql {
var $database_class = "DB_Example"; ## Which database to connect...
var $database_table = "active_sessions"; ## and find our session data in this
}
to your local.inc and remove that information from session.injc.
Instead add a reference to Example_CT_Sql to your Session
subclass:
class Example_Session extends Session {
var $classname = "Example_Session";
...
var $that_class = "Example_CT_Sql"; ## name of data storage container
...
}
This will operate your Session subclass as did version 6.2
before. The 7.x versions of PHPLIB offer enhanced storage
facilities for sessions, for example in System V Shared Memory
segments, flat files, DBM files or LDAP servers.
Kristian
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Kristian Koehntopp: "Re: [PHPLIB] Function nextid() with PostgreSql"
- Previous message: LRJ: "[PHPLIB] PHPLIB and MySQL"
- In reply to: phplib-list <email protected>: "[PHPLIB] problems with session.inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

