Date: 09/21/00
- Next message: Padraic Renaghan: "[phplib] Re: a small bug/annoyance]"
- Previous message: Benjamin Smith: "[phplib] PHPLIB Templates VS fasttemplate"
- Next in thread: Padraic Renaghan: "[phplib] Re: a small bug/annoyance]"
- Reply: Padraic Renaghan: "[phplib] Re: a small bug/annoyance]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Once an object has been registered with a session that object's class
declaration has to be available on every page visited thereafter. Otherwise
you're given the following error...
Fatal error: Cannot instantiate non-existent class: class_name in Eval code
on line 1
I have some pages where I don't use certain registered objects and don't
want the additional overhead of instantiating them. I thought a simple fix
would be to have the code which recreates the object to first check if the
class has been declared. PHP has a function function_exists(), but not
class_exists(). Does anyone know of a workaround? Should I try to get such a
function added to the PHP4 CVS?
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Padraic Renaghan: "[phplib] Re: a small bug/annoyance]"
- Previous message: Benjamin Smith: "[phplib] PHPLIB Templates VS fasttemplate"
- Next in thread: Padraic Renaghan: "[phplib] Re: a small bug/annoyance]"
- Reply: Padraic Renaghan: "[phplib] Re: a small bug/annoyance]"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

