Zend Framework

A few typos prevent zf.php from using the ZEND_TOOL_INCLUDE_PATH_PREPEND environment variable

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.9.0
  • Fix Version/s: 1.9.1
  • Component/s: Zend_Tool
  • Labels:
    None

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)) {

Activity

Hide
Ralph Schindler added a comment -

Fixed in trunk in r17522 and 1.9 release branch in r17524

Show
Ralph Schindler added a comment - Fixed in trunk in r17522 and 1.9 release branch in r17524
Hide
Ralph Schindler added a comment -

Updating fix information

Show
Ralph Schindler added a comment - Updating fix information

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: