Permalink
Browse files

Use sys_get_temp_dir(), not hardcoded "/tmp"

See: <#55>
  • Loading branch information...
1 parent ff8b389 commit 0bbf2a2ac34f495e42aa852293fe0ed821659047 @epriestley epriestley committed Feb 26, 2015
Showing with 1 addition and 2 deletions.
  1. +1 −2 xhprof_lib/utils/xhprof_runs.php
@@ -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 " .

0 comments on commit 0bbf2a2

Please sign in to comment.