1

ブートストラップファイルでZend_Session::Start()を使用すると、次のエラーが発生します。

Maximum execution time of 30 seconds exceeded in G:\wamp\library\Zend\Session.php on line 480

Zend\Session.phpコードの480行目は

$startedCleanly = session_start();

ブラウザは、それが原因で永遠のようにページをロードし続けます。これは、無限のwhileループのようなものです。コンテクスト

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

    protected $_config;
    protected $_acl;
    protected $_auth;

public function _initMyAutoloader()
{
    $autloader = Zend_Loader_Autoloader::getInstance();
    $autloader->pushAutoloader(new Zend_Application_Module_Autoloader(array('basePath'=>APPLICATION_PATH . '/','namespace'=>'')));
    return $autloader ;

}

public function _initMyConfig()
{
    Zend_Session::start();
    $this->_config = new Zend_Config($this->getOptions());
    Zend_Registry::set('config',$this->_config);
    return $this->_config;
}

ありがとう。

4

1 に答える 1

-2

セッションのせいではありませんが、max_execution_time.

max_execution_timephp.ini で設定できるので、変更できます。

max_execution_time = 60     ; Maximum execution time of each script, in seconds
于 2011-06-14T08:32:56.760 に答える