-- Rob Allen <[EMAIL PROTECTED]> wrote (on Saturday, 24 February 2007, 10:04 PM +0000): > Matthew Weier O'Phinney wrote: > > I proposed the following improvement today: > > > > http://framework.zend.com/issues/browse/ZF-937 > > > > Basically, I propose having Zend::loadClass() test first with > > class_exists() and then with interface_exists(). > > > [snip] > > > The proposed fix is very simple, and makes loadClass() more flexible. > > However, we have already once deprecated loadInterface(), and want to > > hear from you to determine if there are any other concerns with adding > > this functionality. > > > > +1 > > > I can't think of a downside. Does anyone use Zend::loadClass() outside > of autoload anyway? (other than in tutorials...)
It's used in Zend_Controller_Dispatcher_Standard, as well as the various server classes (Zend_XmlRpc_Server, Zend_Rest_Server) -- basically any time the class being called is not known before run-time. -- Matthew Weier O'Phinney PHP Developer | [EMAIL PROTECTED] Zend - The PHP Company | http://www.zend.com/
