We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1af920b + 8f07580 commit 518a7d0Copy full SHA for 518a7d0
xhprof_lib/utils/xhprof_runs.php
@@ -91,7 +91,7 @@ public function __construct($dir = null) {
91
// if specified, else we default to the directory
92
// in which the error_log file resides.
93
94
- if (empty($dir)) {
+ if (empty($dir) && !($dir = getenv('XHPROF_OUTPUT_DIR'))) {
95
$dir = ini_get("xhprof.output_dir");
96
if (empty($dir)) {
97
@@ -101,7 +101,7 @@ public function __construct($dir = null) {
101
"Trying {$dir} as default. You can either pass the " .
102
"directory location as an argument to the constructor ".
103
"for XHProfRuns_Default() or set xhprof.output_dir ".
104
- "ini param.");
+ "ini param, or set XHPROF_OUTPUT_DIR environment variable.");
105
}
106
107
$this->dir = $dir;
0 commit comments