Skip to content

Commit

Permalink
Use sys_get_temp_dir(), not hardcoded "/tmp"
Browse files Browse the repository at this point in the history
See: <#55>
  • Loading branch information
epriestley committed Feb 26, 2015
1 parent ff8b389 commit 0bbf2a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xhprof_lib/utils/xhprof_runs.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ public function __construct($dir = null) {
$dir = ini_get("xhprof.output_dir");
if (empty($dir)) {

// some default that at least works on unix...
$dir = "/tmp";
$dir = sys_get_temp_dir();

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

0 comments on commit 0bbf2a2

Please sign in to comment.