Skip to content

Commit

Permalink
Merge pull request #24 from Rarst/callgraph-process
Browse files Browse the repository at this point in the history
Tweaked proc_open() call for callgraph to work on Windows
  • Loading branch information
billf committed Apr 14, 2014
2 parents bdc69fa + 618899a commit e83d179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xhprof_lib/utils/callgraph_utils.php
Expand Up @@ -109,7 +109,7 @@ function xhprof_generate_image_by_dot($dot_script, $type) {

$cmd = " dot -T".$type;

$process = proc_open($cmd, $descriptorspec, $pipes, "/tmp", array());
$process = proc_open( $cmd, $descriptorspec, $pipes, sys_get_temp_dir(), array( 'PATH' => getenv( 'PATH' ) ) );
if (is_resource($process)) {
fwrite($pipes[0], $dot_script);
fclose($pipes[0]);
Expand Down

0 comments on commit e83d179

Please sign in to comment.