Maxim函数嵌套在php中

时间:2015-03-05 08:23:03

标签: php

我遇到了问题,当我尝试定义变量时出现错误。

Maximum function nesting level of '500' reached, aborting!

我的代码是:

if (isset($this->a_environmentSupported[$s_environment])) {
        $this->s_environment = $s_environment;
        define('PROJECT_PATH', Context::getInstance()->getEnvironment()->getConfiguration('project_path'));
    } else {
        throw new \UnexpectedValueException(sprintf('The environment "%s" is not supported.', $s_environment));
    }

我增加xdebug.max_nesting_level = 1000。 问题出在define()中,因为如果删除define(),应用程序就可以了。 请帮帮我! Thx提前

0 个答案:

没有答案