|
|
|
@ -1,6 +1,6 @@ |
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
if (isset($_GET['mw_opcache_reset']) && $_GET['mw_opcache_reset'] == 'ok'){ |
|
|
|
|
if (isset($_GET['mw_opcache_reset']) && $_GET['mw_opcache_reset'] == 'ok') { |
|
|
|
|
opcache_reset(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -24,7 +24,7 @@ function app_xhprof_end() { |
|
|
|
|
|
|
|
|
|
$root = '{$ROOT_PATH}'; |
|
|
|
|
$lib = $root . '/server/xhprof'; |
|
|
|
|
if (!file_exists($lib)) { |
|
|
|
|
if (! file_exists($lib)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -42,8 +42,8 @@ function app_xhprof_end() { |
|
|
|
|
|
|
|
|
|
if (extension_loaded('xhprof') |
|
|
|
|
&& isset($_GET[XHProf_Name]) && $_GET[XHProf_Name] == 'ok' && |
|
|
|
|
(!in_array($_SERVER['SCRIPT_NAME'], array('/xhprof_html/callgraph.php', |
|
|
|
|
'/xhprof_html/index.php')))) { |
|
|
|
|
(! in_array($_SERVER['SCRIPT_NAME'], ['/xhprof_html/callgraph.php', |
|
|
|
|
'/xhprof_html/index.php']))) { |
|
|
|
|
app_xhprof_start(); |
|
|
|
|
include_once $_SERVER['SCRIPT_FILENAME']; |
|
|
|
|
app_xhprof_end(); |
|
|
|
|