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

After upgrading to PHP 8.0.19 from PHP 7.4.19 on Windows, escaping spaces breaks commands #16

Open
Sotiris-k opened this issue May 11, 2022 · 1 comment

Comments

@Sotiris-k
Copy link

Sotiris-k commented May 11, 2022

Hello!

Honestly I'm buffled how this happened, I upgraded PHP to 8.0 from 7.4 and suddenly the static method Util::escapeSpacesIfOnWindows($cmd) causes the commands to not be recognized.

The error thrown is

Exception 'RuntimeException' with message 'Command failed:
  exit-code: 1
  message:   '""C:\cygwin64\bin\mysqldump.exe" --user="root" --password="root" --single-transaction "something""' is not recognized as an internal or external command,
operable program or batch file.

Once I stop escaping the command manually, everything works.

How could this be possible? I made sure that nothing else changed in the system that could have caused this.

@sebastianfeldmann
Copy link
Owner

Good question :)
Maybe an ini setting or something?

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

No branches or pull requests

2 participants