PHP is_dir没有按预期工作

时间:2013-11-03 00:38:48

标签: php zend-framework2

我通过启动指南设置了ZF2,并决定将其移植到我的新网站。我一直调试到init_autoloader.php中的is_dir,并想知道是否有人知道什么是错的。这是我的代码:

// Composer autoloading
$loader = include 'vendor/autoload.php';

$zf2Path = false;

if (is_dir('vendor/zendframework/zendframework/library')) {
    die('hello'); //This die does not execute
    $zf2Path = 'vendor/zendframework/zendframework/library';
} elseif (getenv('ZF2_PATH')) {      // Support for ZF2_PATH environment variable or git submodule
    die('hello1'); //This die does not execute either
    $zf2Path = getenv('ZF2_PATH');
} elseif (get_cfg_var('zf2_path')) { // Support for zf2_path directive value
    die('hello2'); //Nor this one
    $zf2Path = get_cfg_var('zf2_path');
}

所以没有一个骰子执行但是如上所述,这个代码在我的本地工作正常,具有完全相同的结构。

0 个答案:

没有答案
相关问题