Details
Description
When the environment variable "ZEND_TOOL_INCLUDE_PATH_PREPEND" is set, zf.php throws notices and refuses to work because it cannot find "Zend Framework", even though its path is set in "ZEND_TOOL_INCLUDE_PATH_PREPEND".
Inspecting "zf.php" revealed the following:
1. on line 67:
$_ENV['HOME']
must be changed to:
$_zf['HOME']
2. on line 140:
double "$$" should be changed to single "$"
Patch:
67c67
< $_zf['STORAGE_DIR'] = $_ENV['HOME'] . '/.zf/';
—
> $_zf['STORAGE_DIR'] = $_zf['HOME'] . '/.zf/';
140c140
< if (isset($zfIncludePath['prepend']) && ($zfIncludePath['prepend'] !== false) && (($zfIncludePath['prependRealpath'] = realpath($$zfIncludePath['prepend'])) !== false)) {
—
> if (isset($zfIncludePath['prepend']) && ($zfIncludePath['prepend'] !== false) && (($zfIncludePath['prependRealpath'] = realpath($zfIncludePath['prepend'])) !== false)) {
Fixed in trunk in r17522 and 1.9 release branch in r17524