ZF-7438: A few typos prevent zf.php from using the ZEND_TOOL_INCLUDE_PATH_PREPEND environment variable
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:
on line 67: $_ENV['HOME'] must be changed to: $_zf['HOME']
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)) {
Comments
Posted by Ralph Schindler (ralph) on 2009-08-10T10:11:36.000+0000
Fixed in trunk in r17522 and 1.9 release branch in r17524
Posted by Ralph Schindler (ralph) on 2009-08-12T10:39:25.000+0000
Updating fix information