Skip to content

Commit 0bbf2a2

Browse files
author
epriestley
committed
Use sys_get_temp_dir(), not hardcoded "/tmp"
See: <phacility#55>
1 parent ff8b389 commit 0bbf2a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

xhprof_lib/utils/xhprof_runs.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ public function __construct($dir = null) {
9595
$dir = ini_get("xhprof.output_dir");
9696
if (empty($dir)) {
9797

98-
// some default that at least works on unix...
99-
$dir = "/tmp";
98+
$dir = sys_get_temp_dir();
10099

101100
xhprof_error("Warning: Must specify directory location for XHProf runs. ".
102101
"Trying {$dir} as default. You can either pass the " .

0 commit comments

Comments
 (0)