I don´t think so. That´s my bootstrap. And without autoloading I won´t get an error. So it must be loaded.
> -----Original Message----- > From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 06, 2008 3:32 PM > To: [email protected] > Subject: Re: [fw-general] Why will Zend_Config be autoloaded? > > -- Jan Pieper <[EMAIL PROTECTED]> wrote > (on Thursday, 06 November 2008, 03:20 PM +0100): > > There is no problem, but I am confused why it will be autoloaded > > altought it is already loaded. I thought autoload will *only* load > > classes that are not loaded until they are required. > > It's possible that another class or some other code in your app is > referring to Zend_Config prior to you loading Zend_Config_Xml. > > > > > > -----Original Message----- > > > From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, November 06, 2008 3:15 PM > > > To: [email protected] > > > Subject: Re: [fw-general] Why will Zend_Config be autoloaded? > > > > > > -- Jan Pieper <[EMAIL PROTECTED]> wrote > > > (on Thursday, 06 November 2008, 11:52 AM +0100): > > > > registered autoloader (Zend_Loader::registerAutoload) in my > > > > application to not even add require_once statement for temporary > > > > needed classes for debugging etc. and I added HTML output to > > > > autoload() method to know if classes will be autoloaded. > > > Now it seems > > > > that Zend_Config will be autoloaded but I don´t know why. > > > > > > > > ----- SNIP ----- > > > > > > > > <?php > > > > > > > > require_once 'Zend/Loader.php'; > > > > Zend_Loader::registerAutoload(); > > > > > > > > require_once 'Zend/Config/Xml.php'; > > > > $config = new Zend_Config_Xml(realpath('../config/config.xml')); > > > > > > > > [...] > > > > > > > > ----- SNAP ----- > > > > > > > > I added debug_print_backtrace() to > Zend_Loader::autload() method to > > > > find out why it will be autoloaded: > > > > > > > > #0 Zend_Loader::autoload(Zend_Config) > > > > #1 spl_autoload_call(Zend_Config) called at > > > [C:\Server\workspace\flabben\htdocs\index.php:6] > > > > #2 require_once() called at > > > [C:\Server\workspace\flabben\htdocs\index.php:6] > > > > > > > > So I thought Zend_Config_Xml does not include > > > "Zend/Config.php" but it > > > > do. If I unregister autoloader, my application works fine > > > without any > > > > problems, so Zend_Config must be available. > > > > > > > > Someone can tell me why Zend_Config will be autoloaded? > > > > > > Is there a problem with it being autoloaded? I'm a bit > confused as to > > > what the issue is here... > > > > > > -- > > > Matthew Weier O'Phinney > > > Software Architect | [EMAIL PROTECTED] > > > Zend Framework | http://framework.zend.com/ > > > > > > > > > > -- > Matthew Weier O'Phinney > Software Architect | [EMAIL PROTECTED] > Zend Framework | http://framework.zend.com/ > >
