From 3e9dbd63234319308a74d4b2355af472158d0015 Mon Sep 17 00:00:00 2001 From: Bryan Davis Date: Fri, 28 Nov 2014 16:07:02 -0700 Subject: [PATCH] Use sys_get_temp_dir() as default save location Closes #46 --- xhprof_lib/utils/xhprof_runs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xhprof_lib/utils/xhprof_runs.php b/xhprof_lib/utils/xhprof_runs.php index cde5ff55..94167214 100644 --- a/xhprof_lib/utils/xhprof_runs.php +++ b/xhprof_lib/utils/xhprof_runs.php @@ -96,7 +96,7 @@ public function __construct($dir = null) { 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 " .