[phplib] a small bug/annoyance From: Spruce Weber (sprucely <email protected>)
Date: 09/21/00

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>