On 6/10/08, Matthew Weier O'Phinney <[EMAIL PROTECTED]> wrote: > > -- Robin Skoglund <[EMAIL PROTECTED]> wrote > (on Tuesday, 10 June 2008, 03:57 PM +0200): > > > On Tue, Jun 10, 2008 at 3:37 PM, Matthew Weier O'Phinney < > [EMAIL PROTECTED]> > > wrote: > > -- Thomas Weidner <[EMAIL PROTECTED]> wrote > > (on Tuesday, 10 June 2008, 03:25 PM +0200): > > > I just added a new reference table to the documentation where > people can > > > see which ZF component depends on which other ZF component. > > > > Where is this? Do you have it built anywhere? > > > > > So if anyone is in need of just one component like Zend_Log he can > just > > > look into this table and see which other components he has also to > > > provide that all works properly. > > > > Does this take into consideration optional dependencies? For > instance, > > Zend_Db can be used _without_ Zend_Config, but can also consume it. > > > > > > Isn't that a requirement nonetheless? At some point there is a check like > 'if > > ($config instance of Zend_Config)', which means the class requires > Zend_Config > > to do the check. > > > Actually, in recent PHP versions (I'm not sure when it started exactly; > somebody will chime in, I'm sure), the class does not need to be loaded > for instanceof checks to succeed, so this is still a soft dependency. > > http://nl2.php.net/instanceof
There are a few pitfalls to be aware of. Before PHP version 5.1.0, * > instanceof* would call > __autoload()<http://nl2.php.net/manual/en/language.oop5.autoload.php>if the > class name did not exist. In addition, if the class was not loaded, a > fatal error would occur. This can be worked around by using a *dynamic > class reference*, or a string variable containing the class name: :) -- Vincent
