ZF-7438: A few typos prevent zf.php from using the ZEND_TOOL_INCLUDE_PATH_PREPEND environment variable

Issue Type: Bug Created: 2009-08-01T01:56:24.000+0000 Last Updated: 2009-08-12T10:39:25.000+0000 Status: Resolved Fix version(s): - 1.9.1 (11/Aug/09)

Reporter: adsfadsf (staskorz) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: Attachments: - zf.php.patch


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 "$"



< $_zf['STORAGE_DIR'] = $_ENV['HOME'] . '/.zf/';

$_zf['STORAGE_DIR'] = $_zf['HOME'] . '/.zf/';


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


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

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.