#24281ImageMagick does not work with quotes in exec() path on Windows
Description
In 4.4.4 and before, typo3 did not put quotes around the IM path when calling it with exec(). For example, the path is:
e:\ImageMagick\convert.exe +profile ‘*’ -geometry 170×136! -colorspace RGB -quality 70 “E:/websites/——/typo3/sysext/install/imgs/jesus.jpg”0 “E:/websites/——/typo3temp/pics/install_read_jpg.jpg”
As of version 4.5 (I tried alpha3, beta1 and beta2), quotes are put around IM executable path. Therefore the following command is called:
“e:\ImageMagick\convert.exe” [the rest of the parameters are omitted]
This does not work on Windows. Calling the whole command (with quoted executable) from Windows command line works (IM creates the necessary files in typo3 folder. However, calling the command from php exec() silently fails. Calling the command with unquoted executable path works both from windows command line and from php exec().
Unfortunately, this prevents me from upgrading to the latest typo3 version.
(I can not say for sure, but if I remember correctly, using quoted path works in PHP version 5.3. However, this version introduces some other major problems with typo3 on Windows, e.g. deprecated functions.)
(issue imported from #M16656)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.