Re: link to exceptions in autoload thread?

From: Date: Wed, 03 Oct 2007 20:54:45 +0000
Subject: Re: link to exceptions in autoload thread?
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-32616@lists.php.net to get a copy of this message
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

« previous php.internals (#32616) next »