I was able to reproduce this error by having two copies of the Zend Framework installed. I'm still not sure exactly why both are being loaded, but I'll describe my setup and more evidence of the bug here.

Hi, Stephan, It may be solved by using only one library.in include_path.

I think you may use 2 libraries in your include_path now, so it would cause confusing..

Posted by Stephen Crosby (stevecrozz) on 2009-08-03T12:41:30.000+0000

Hi Satoru,

I do have two libraries in my include path, but if you examine the source code for Zend_Tool_Framework_Loader_IncludePathLoader, you'll find this section which obviously doesn't work:

// ensure that we only traverse a single version of Zend Framework on all include paths
if (file_exists($realIncludePath . '/Zend/Tool/Framework/Loader/IncludePathLoader.php')) {
if ($isZendTraversed === false) {
$isZendTraversed = true;
} else {
// use the deny directory pattern that includes the path to 'Zend', it will not be accepted
$filterDenyDirectoryPattern = '.*((/|\\).svn|' . preg_quote($realIncludePath . DIRECTORY_SEPARATOR) . 'Zend)';
}
}

Because this component tries and fails to cover the case of multiple libraries, I still consider this a bug.

Posted by Steven Brady (sjbrady) on 2009-08-20T14:28:16.000+0000

I finally got back to working on a resolution for this on our solaris server. Here is the resolution that worked for me. I did
install the latest release but that did make any difference.

Make sure you use the gnu version of tar to do the extract of the gz file.

I updated the zf.sh script so that I had a fixed command line to get around standard solaris not installing readlink.
I used the following command for execution: