Issues

ZF-10401: Zend_Loader_Autoloader::setZfPath leads to already declared classes

Issue Type: Bug Created: 2010-08-30T06:37:47.000+0000 Last Updated: 2012-11-20T21:37:26.000+0000 Status: Open Fix version(s): Reporter: Fabrice Marsaud (marsaud) Assignee: None Tags: - Zend_Loader

Related issues: Attachments:

Description

This is what happens :

I call require_once "include_path_to_latest_ZF/Zend/Loader/Autoloader.php", which internally calls require_once "include_path_to_latest_ZF/Zend/Loader.php"

I instanciate the autoloader and call setZfPath("path_to_older_ZF"), which internally prepends "path_to_older_ZF" to the php include_path.

And then, every require_once called on previously required classes fail with "Cannot redeclare class *", because the include_path to ZF has changed !

Did I miss something on using this "ZF version choice" feature of Zend_Loader_Autoloader ?...

Comments

No comments to display

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts