Issues

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

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

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

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts