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


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 ?...


No comments to display