服務異常稍后再試
Wed, 18 Feb 26 01:56:38 +0800
Array ( )SOURCE CODE:
| 9 | $text = ob_get_contents(); |
| 10 | ob_end_clean(); |
| 11 | return $text; |
| 12 | } |
| 13 | |
| 14 | static public function exception_handler($exception) { |
| 15 | if (defined('DEBUG_PHP') && constant('DEBUG_PHP')===true) { |
| 16 | self::_exception_handler($exception); |
| 17 | |
| 18 | }else{ |
| 19 | dumpFunc(); |
| 20 | self::system_crash(); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | static private function _exception_handler($exception){ |
| 25 | foreach(kernel::serviceList('base_exception_handler') as $service){ |
| 26 | if(method_exists($service, 'pre_display')){ |
| 27 | $service->pre_display($content); |
| 28 | } |
| 29 | } |
Array
(
[0] => ErrorException Object
(
[message:protected] => 無法連接數(shù)據(jù)庫:Connection refused
[string:Exception:private] =>
[code:protected] => 1
[file:protected] => /www/wwwroot/public_html/app/base/lib/db/connections.php
[line:protected] => 184
[trace:Exception:private] => Array
(
[0] => Array
(
[function] => exception_error_handler
[class] => kernel
[type] => ::
[args] => Array
(
[0] => 256
[1] => 無法連接數(shù)據(jù)庫:Connection refused
[2] => /www/wwwroot/public_html/app/base/lib/db/connections.php
[3] => 184
[4] => Array
(
[host] => 127.0.0.1
[user] => public_html
[passwd] => RzJciFbsArH5NHRX
[dbname] => public_html
[lnk] =>
)
)
)
[1] => Array
(
[file] => /www/wwwroot/public_html/app/base/lib/db/connections.php
[line] => 184
[function] => trigger_error
[args] => Array
(
[0] => 無法連接數(shù)據(jù)庫:Connection refused
[1] => 256
)
)
[2] => Array
(
[file] => /www/wwwroot/public_html/app/base/lib/db/connections.php
[line] => 173
[function] => _connect
[class] => base_db_connections
[type] => ->
[args] => Array
(
[0] => 127.0.0.1
[1] => public_html
[2] => RzJciFbsArH5NHRX
[3] => public_html
)
)
[3] => Array
(
[file] => /www/wwwroot/public_html/app/base/lib/db/connections.php
[line] => 158
[function] => _rw_conn
[class] => base_db_connections
[type] => ->
[args] => Array
(
)
)
[4] => Array
(
[file] => /www/wwwroot/public_html/app/base/lib/db/connections.php
[line] => 98
[function] => _ro_conn
[class] => base_db_connections
[type] => ->
[args] => Array
(
)
)
[5] => Array
(
[file] => /www/wwwroot/public_html/app/base/lib/db/connections.php
[line] => 147
[function] => select
[class] => base_db_connections
[type] => ->
[args] => Array
(
[0] => SELECT * FROM `sdb_ectools_currency` WHERE `cur_default`='true' LIMIT 0, 1
)
)
[6] => Array
(
[file] => /www/wwwroot/public_html/app/base/lib/db/connections.php
[line] => 137
[function] => selectlimit
[class] => base_db_connections
[type] => ->
[args] => Array
(
[0] => SELECT * FROM `sdb_ectools_currency` WHERE `cur_default`='true'
[1] => 1
[2] => 0
)
)
[7] => Array
(
[file] => /www/wwwroot/public_html/app/ectools/model/currency.php
[line] => 153
[function] => selectrow
[class] => base_db_connections
[type] => ->
[args] => Array
(
[0] => SELECT * FROM `sdb_ectools_currency` WHERE `cur_default`='true'
)
)
[8] => Array
(
[file] => /www/wwwroot/public_html/app/ectools/model/currency.php
[line] => 192
[function] => getDefault
[class] => ectools_mdl_currency
[type] => ->
[args] => Array
(
)
)
[9] => Array
(
[file] => /www/wwwroot/public_html/custom/b2c/controller/site/product.php
[line] => 22
[function] => getFormat
[class] => ectools_mdl_currency
[type] => ->
[args] => Array
(
)
)
[10] => Array
(
[file] => /www/wwwroot/public_html/app/base/kernel.php
[line] => 358
[function] => __construct
[class] => b2c_ctl_site_product
[type] => ->
[args] => Array
(
[0] => app Object
(
[__render:app:private] =>
[__router:app:private] =>
[__define:app:private] =>
[__taskrunner:app:private] =>
[__checkVaryArr:app:private] => Array
(
)
[__langPack:app:private] => Array
(
)
[__installed:app:private] =>
[__actived:app:private] =>
[__setting:app:private] =>
[app_id] => b2c
[app_dir] => /www/wwwroot/public_html/app/b2c
[public_app_dir] => /www/wwwroot/public_html/public/app/b2c
[res_url] => http://www.sialexring.net/public/app/b2c/statics
[favicon] => http://www.sialexring.net/public/app/site/statics
[res_full_url] => http://www.sialexring.net/public/app/b2c/statics
[lang_url] => http://www.sialexring.net/public/app/b2c/lang
[lang_full_url] => http://www.sialexring.net/public/app/b2c/lang
[widgets_url] => http://www.sialexring.net/public/app/b2c/widgets
[widgets_full_url] => http://www.sialexring.net/public/app/b2c/widgets
[res_dir] => /www/wwwroot/public_html/public/app/b2c/statics
[widgets_dir] => /www/wwwroot/public_html/public/app/b2c/widgets
[lang_dir] => /www/wwwroot/public_html/public/app/b2c/lang
[_lang_resource] =>
)
)
)
[11] => Array
(
[file] => /www/wwwroot/public_html/app/base/lib/static/app.php
[line] => 76
[function] => single
[class] => kernel
[type] => ::
[args] => Array
(
[0] => b2c_ctl_site_product
[1] => app Object
(
[__render:app:private] =>
[__router:app:private] =>
[__define:app:private] =>
[__taskrunner:app:private] =>
[__checkVaryArr:app:private] => Array
(
)
[__langPack:app:private] => Array
(
)
[__installed:app:private] =>
[__actived:app:private] =>
[__setting:app:private] =>
[app_id] => b2c
[app_dir] => /www/wwwroot/public_html/app/b2c
[public_app_dir] => /www/wwwroot/public_html/public/app/b2c
[res_url] => http://www.sialexring.net/public/app/b2c/statics
[favicon] => http://www.sialexring.net/public/app/site/statics
[res_full_url] => http://www.sialexring.net/public/app/b2c/statics
[lang_url] => http://www.sialexring.net/public/app/b2c/lang
[lang_full_url] => http://www.sialexring.net/public/app/b2c/lang
[widgets_url] => http://www.sialexring.net/public/app/b2c/widgets
[widgets_full_url] => http://www.sialexring.net/public/app/b2c/widgets
[res_dir] => /www/wwwroot/public_html/public/app/b2c/statics
[widgets_dir] => /www/wwwroot/public_html/public/app/b2c/widgets
[lang_dir] => /www/wwwroot/public_html/public/app/b2c/lang
[_lang_resource] =>
)
)
)
[12] => Array
(
[file] => /www/wwwroot/public_html/app/site/lib/router.php
[line] => 604
[function] => controller
[class] => app
[type] => ->
[args] => Array
(
[0] => site_product
)
)
[13] => Array
(
[file] => /www/wwwroot/public_html/app/site/lib/router.php
[line] => 492
[function] => default_dispatch
[class] => site_router
[type] => ->
[args] => Array
(
)
)
[14] => Array
(
[file] => /www/wwwroot/public_html/app/base/kernel.php
[line] => 162
[function] => dispatch
[class] => site_router
[type] => ->
[args] => Array
(
[0] => product-Ce32SZ.html
)
)
[15] => Array
(
[file] => /www/wwwroot/public_html/index.php
[line] => 6
[function] => boot
[class] => kernel
[type] => ::
[args] => Array
(
)
)
)
[previous:Exception:private] =>
[severity:protected] => 256
)
)
SOURCE CODE: | 155 | cachemgr::init(false); |
| 156 | }else{ |
| 157 | cachemgr::init(); |
| 158 | cacheobject::init(); |
| 159 | } |
| 160 | //get app router |
| 161 | self::$__router = app::get($app)->router(); |
| 162 | self::$__router->dispatch($path); |
| 163 | |
| 164 | }catch(Exception $e){ |
| 165 | base_errorpage::exception_handler($e); |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | static function exception_error_handler($errno, $errstr, $errfile, $errline ) |
| 170 | { |
| 171 | switch ($errno) { |
| 172 | case E_ERROR: |
| 173 | case E_USER_ERROR: |
| 174 | logger::error(sprintf('error: %s, severity:%s, file:%s, line:%s', $errstr, $errno, $errfile, $errline)); |
| 175 | //隱藏數(shù)據(jù)庫連接敏感信息 |
Array ( )SOURCE CODE:
| 1 | <?php |
| 2 | #include("app/serveradm/xhprof.php"); |
| 3 | define('ROOT_DIR',realpath(dirname(__FILE__))); |
| 4 | require(ROOT_DIR.'/app/base/kernel.php'); |
| 5 | require(ROOT_DIR.'/tools/debugFunc.php'); |
| 6 | kernel::boot(); |
| 7 | if(defined("STRESS_TESTING")){ |
| 8 | b2c_forStressTest::logSqlAmount(); |
| 9 | } |