-- 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/

Reply via email to