pull/680/head
Mr Chen 4 months ago
parent 98f267057b
commit 19efde1fda
  1. 4
      plugins/php-apt/conf/app_start.php
  2. 4
      plugins/php-yum/conf/app_start.php

@ -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();

@ -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();

Loading…
Cancel
Save