91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女

Yaf_Application::getLastErrorMsg

(Yaf >=2.1.2)

Yaf_Application::getLastErrorMsg獲取最近產(chǎn)生的錯誤的錯誤信息

說(shuō)明

public Yaf_Application::getLastErrorMsg(): string

參數

此函數沒(méi)有參數。

返回值

范例

示例 #1 Yaf_Application::getLastErrorMsg()example

<?php
function error_handler($errno$errstr$errfile$errline) {
   
var_dump(Yaf_Application::app()->getLastErrorMsg());
}

$config = array(                   
 
"application" => array(
   
"directory" => "/tmp/notexists",
     
"dispatcher" => array(
       
"throwException" => 0//trigger error instead of throw exception when error occure
      
),
  ),
);

$app = new Yaf_Application($config);
$app->getDispatcher()->setErrorHandler("error_handler"E_RECOVERABLE_ERROR);
$app->run();
?>

以上例程的輸出類(lèi)似于:

string(69) "Could not find controller script /tmp/notexists/controllers/Index.php"
91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女