function tearDown() { if(sys :: exec_mode() != 'cli') { $_SERVER['REQUEST_URI'] = $this->old_request_uri; $_GET = $this->old_get; $_POST = $this->old_post; $_FILES = $this->old_files; } }
function start_user_session() { if (user_session_has_started()) return false; if(defined('SESSION_USE_DB') && constant('SESSION_USE_DB')) _register_session_functions(); if(sys :: exec_mode() != 'cli') @session_start(); $GLOBALS['session_has_started'] = true; return true; }
function start_user_session() { $has_started =& $GLOBALS['session_is_started']; if (isset($has_started) && $has_started) { return false; } if (defined('SESSION_USE_DB') && constant('SESSION_USE_DB')) { _register_session_db_functions(); } if (sys::exec_mode() != 'cli') { @session_start(); } $has_started = true; return true; }
function parse_console() { if (sys::exec_mode() == 'cli') { return debug::parse_cli_console(); } else { return debug::parse_html_console(); } }
function is_cgi() { return sys :: exec_mode() == 'cgi'; }