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
billf committed Apr 14, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
Original file line number Diff line number Diff line change
@@ -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]);

0 comments on commit e83d179

Please sign in to comment.