diff --git a/xhprof_lib/utils/xhprof_runs.php b/xhprof_lib/utils/xhprof_runs.php index 2a22a5dc..6dc831e9 100644 --- a/xhprof_lib/utils/xhprof_runs.php +++ b/xhprof_lib/utils/xhprof_runs.php @@ -104,6 +104,11 @@ public function __construct($dir = null) { "ini param."); } } + + if (!is_dir($dir)) { + mkdir($dir, 0700, true); + } + $this->dir = $dir; }