Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cwd param to proc_open #3281

Merged
merged 1 commit into from Jun 8, 2021
Merged

Conversation

stoyan0v
Copy link
Contributor

The create archive feature does not work on php's that are compiled with thread safety.

That's because chdir() used in the elFinderVolumeDriver::makeArchive() function
does not change the current directory for the OS, see: https://www.php.net/manual/en/function.chdir.php#refsect1-function.chdir-notes

In order to fix that, the procExec() function can be made to accept an additional
parameter for the $cwd which then can be passed to proc_open().

@nao-pon nao-pon merged commit f6db283 into Studio-42:master Jun 8, 2021
@nao-pon
Copy link
Member

nao-pon commented Jun 8, 2021

@stoyan0v Thanks! 👍

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.

None yet

2 participants