These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | @ini_set('date.timezone', 'Asia/Shanghai'); |
||
3 | @header('content-type:text/html;charset=utf-8'); |
||
4 | |||
5 | define('EXPORT_PATH',__DIR__); |
||
6 | define('PUCK_VER','1.0.17'); |
||
7 | define('IS_CLI',php_sapi_name()=='cli'); |
||
8 | if(DEBUG){ |
||
9 | error_reporting(E_ALL); |
||
10 | @ini_set('display_errors', 'On'); |
||
11 | @ob_start(); |
||
0 ignored issues
–
show
|
|||
12 | $whoops = new \Whoops\Run; |
||
13 | $handle=IS_CLI?"PlainTextHandler":"PrettyPageHandler"; |
||
14 | $handle="\\Whoops\\Handler\\".$handle; |
||
15 | $whoops->pushHandler(new $handle); |
||
16 | $whoops->register(); |
||
17 | } |
If you suppress an error, we recommend checking for the error condition explicitly: