-
Notifications
You must be signed in to change notification settings - Fork 132
On Windows $pdf->getDataFields() fails because the command adds double-quotes around "A" handle when php runs in PowerShell #336
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
Comments
This was probably caused by this fix in the underlying php-shellcommand: TBH I'm not sure how to fix it and I'm also not using windows. Suggestions? |
I'm using alternately, there's an option in edit: I just stepped through the code on my system. the double-quotes around the "A" are added in |
Yeah, that's an option. But you may run into problems if your filenames contain spaces (or other potentially critical chars). If you can ensure that this is not the case it should be safe to use |
Thanks for the quick replies. After retrying to reproduce the issue to try a fix I cannot reproduce the issue anymore. It was another error in my application and when I inspected the command line generated internally to see what was wrong and tried it manually I had the error in PowerShell but not in cmd, and assumed the same was occurring in the php runtime. But my error was reusing twice the same Sorry for the trouble! |
Reproduces only running in
PowerShell
or Visual Studio Code (which uses PowerShell for its Terminal). Undercmd
it is fine.When it executes
Underneath the command ran is
Which fails with
But if I manually remove the double quotes around the "A" like this it would works:
Note that I'm running php inside Visual Studio Code which uses PowerShell. If I would use cmd it would work.
The text was updated successfully, but these errors were encountered: