br0ken Posted May 29, 2010 Share Posted May 29, 2010 When I try to instantiate an abstract class a fatal error occurs. Is it possible to somehow suppress this error and return it as a string so that execution can continue? If this isn't possible, is there a way to test whether or not a certain class is abstract before trying to instantiate it? Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/203244-stop-fatal-error-on-abstract-class-instantiation/ Share on other sites More sharing options...
br0ken Posted May 29, 2010 Author Share Posted May 29, 2010 Please ignore my question! Although I've been Googling this subject for a while, I didn't stumble across what I was looking for until just after I posted. If any one wants to know how to figure out whether or not a class is abstract at run time see the following link: http://php.net/manual/en/class.reflectionclass.php Link to comment https://forums.phpfreaks.com/topic/203244-stop-fatal-error-on-abstract-class-instantiation/#findComment-1064878 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.