Hi everyone,

I've got an issue when using zf.bat from Zend_Tool and wanted to check if it
is just a problem with my configuration before I file something in the bug
tracker. 

OS: Win XP
ZF: 1.8.0
PHP: 5.2.6
Apache: 2.2.10

As I want to migrate, two different versions of ZF are sitting on my system
(the real path names are a little bit different, but that is not important
at this point):

#1 is 1.8.0: .../www/_libraries/php/zend_framework/1.8.0/library/Zend
#2 is 1.7.x: .../www/projectxy/library/Zend


When I call .../www/_libraries/php/zend_framework/1.8.0/bin/zf.bat --help, I
get the following error:

"PHP Fatal error:  Cannot redeclare class Zend_OpenId_Provider in
...\www\projectxy\library\Zend\OpenId\Provider.php on line 44"


This problem has occurred before for somebody in the developing stage
(http://tech.groups.yahoo.com/group/zf-tool/message/45) in a similiar way.
Now for the interesting bit: the error only comes to life when the root
directory of the project from #2 is in include_path, the library path does
not matter. Let me try to explain what works and what does not work with my
include_path:

#a: .../www/_libraries/php/zend_framework/1.8.0/library
#b: .../www/projectxy/library
#c: .../www/projectxy

include_path = "#a; #b; #c;." // does not work
include_path = "#a; #b;      ." // does work
include_path = "      #b; #c;." // does not work
include_path = "      #b;      ." // does work
include_path = "#a;       #c;." // does not work
include_path = "#a;            ." // does work
include_path = "            #c;." // does not work
include_path = "                 ." // does work

To make the long story short:
The error always occurs when the root directory of the project using zf
1.7.x is included, regardless of whether the library/ subdirectory from
1.8.0 or 1.7.x itself is included. As soon as I remove #c from include_path,
it works.

Best regards,
Matthias
-- 
View this message in context: 
http://www.nabble.com/Zend_Tool---issue-%22Cannot-redeclare-class-Zend_OpenId_Provider%22-tp23382515p23382515.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to