Skip to content

Remove specified working dir as tmp is not present on Windows systems#36

Closed
IchHabRecht wants to merge 1 commit into
phacility:masterfrom
IchHabRecht:callgraph
Closed

Remove specified working dir as tmp is not present on Windows systems#36
IchHabRecht wants to merge 1 commit into
phacility:masterfrom
IchHabRecht:callgraph

Conversation

@IchHabRecht
Copy link
Copy Markdown

No description provided.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead use sys_get_temp_dir() ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there isn't any defined value system standard is taken anyway!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have no idea what 'system standard' means, but without a value cwd is what is used, not temp storage.
cwd isn't guaranteed to be writable. e.g. running from a script located on a read-only network mount
even if writable, it may be slow.

i have no idea if dot actually needs a writable cwd, but the existing code assured that.

another difference with this change: by specifying $env=array() it previously passed an empty environment, the new code passes along the current environment. depending on how dot behaves, that could be construed as an information leak.

i'm not sure to what extent the cwd or env matter to dot, but they are both modified by this change.

@billf
Copy link
Copy Markdown
Contributor

billf commented Apr 7, 2014

see also: #24

@billf
Copy link
Copy Markdown
Contributor

billf commented Apr 11, 2014

going to take care of this in #24

@billf billf closed this Apr 11, 2014
yazshel pushed a commit to FluentDevelopment/xhprof that referenced this pull request Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants