Sounds good to me. -Matt
> 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(). > > The rationale I have for this is that when using Zend::loadClass() with > spl_autoload() recently, I hit a snag when some parsed code had a > typehint referencing an interface that had not yet been loaded. Because > Zend::loadClass() does not load interfaces currently, spl_autoload() > failed, and a fatal error was raised. > > Interestingly, a classfile the class require_once()'d later loaded the > interface file, but because spl_autoload() tried to load the interface > before that action occurred, the failure occurred. > > 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. > > -- > Matthew Weier O'Phinney > PHP Developer | [EMAIL PROTECTED] > Zend - The PHP Company | http://www.zend.com/ >
