Skip to content

Respect sys_temp_dir from the parent process#5390

Open
theodorejb wants to merge 2 commits intophpstan:2.1.xfrom
theodorejb:respect-sys-temp-dir
Open

Respect sys_temp_dir from the parent process#5390
theodorejb wants to merge 2 commits intophpstan:2.1.xfrom
theodorejb:respect-sys-temp-dir

Conversation

@theodorejb
Copy link
Copy Markdown

Addresses phpstan/phpstan#13929 without the bug that caused #4699 to be reverted.

Closes phpstan/phpstan#14093

@staabm
Copy link
Copy Markdown
Contributor

staabm commented Apr 3, 2026

Can we e2e test the regression bug which gets fixed?

The bug only manifests when the `sys_temp_dir` path starts with an alphanumeric character (like a drive letter on Windows, or a relative folder name on Linux).
@theodorejb theodorejb force-pushed the respect-sys-temp-dir branch from bc5fe7d to 4b3ea55 Compare April 6, 2026 18:37
@theodorejb
Copy link
Copy Markdown
Author

@staabm I added an E2E test now, which I confirmed fails with the reverted code in #4699, but passes with this PR. Let me know if there's anything I need to change, since this is my first time contributing to PHPStan!

@staabm
Copy link
Copy Markdown
Contributor

staabm commented Apr 7, 2026

@dktapps could you double check this works for you?

Copy link
Copy Markdown
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

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

verified the test. it works for me.

thank you

@staabm staabm requested a review from VincentLanglet April 7, 2026 05:55
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.

3 participants