On Wed, 2007-10-03 at 15:27 -0500, Greg Beaver wrote:
> I do that now, but it is a severe performance hog as well as being
> fugly.  Also, if you use spl_autoload_register, the frame is $bt[2].  In
> other words, it's possible, but still an ugly, unnecessary hack with
> lots of potential pitfalls caused by the inability to customize an error
> message when a class doesn't exist.

Well, the real performance issue there is searching through the file
system - and I doubt performance is important for an error handler. If
you need performance write proper code without errors which need
handling.

johannes

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to