Issues

ZF-7515: fail to set STORAGE_DIR to $HOME/.zf/

Issue Type: Bug Created: 2009-08-07T02:21:37.000+0000 Last Updated: 2009-08-12T10:36:36.000+0000 Status: Resolved Fix version(s): - 1.9.1 (11/Aug/09)

Reporter: KOYAMA Tetsuji (koyhoge) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: - ZF-7464

Attachments:

Description

Here is the patch.

<pre class="highlight">
--- zf.php.orig 2009-08-07 18:16:20.000000000 +0900
+++ zf.php      2009-08-07 18:16:40.000000000 +0900
@@ -64,7 +64,7 @@
     if (($zfStorage = getenv('ZF_STORAGE_DIR')) && file_exists($zfStorage)) {
         $_zf['STORAGE_DIR'] = $zfStorage;
     } elseif (isset($_zf['HOME']) && file_exists($_zf['HOME'] . '/.zf/')) {
-        $_zf['STORAGE_DIR'] = $_ENV['HOME'] . '/.zf/';
+        $_zf['STORAGE_DIR'] = $_zf['HOME'] . '/.zf/';
     }
     
     $storageRealpath = realpath($_zf['STORAGE_DIR']);

Comments

Posted by Ralph Schindler (ralph) on 2009-08-10T10:10:48.000+0000

Fixed in trunk in r17522 and 1.9 release branch in r17524

Posted by Ralph Schindler (ralph) on 2009-08-12T10:36:36.000+0000

Updating fix version 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