[TYPO3-v4] RFC #6001 and resulting #16656 : spaces in paths for IM/GM on Windows

Jigal van Hemert jigal at xs4all.nl
Mon Dec 13 22:30:08 CET 2010


Hi,

On 12-12-2010 20:11, Jigal van Hemert wrote:
> [2] Explains that the way PHP < 5.3 calls cmd.exe is in fact the
> problem. Comments in [3] suggest that it only happens when there are
> more than two double quotes in the command and also propose a few
> workarounds:
> - put command in a temporary .bat file and execute that
> - put a dummy command in front of the actual command (e.g. c: &
> "c:\Program Files\GraphicsMagick\gm.exe" convert -----)

Reporter kindly tested an the conclusion is:
- in PHP < 5.3 on Windows exec() (and similar) commands are not executed 
correctly if there are more than two double quotes in the entire command 
string
- both workarounds (.bat file with command and extra dummy command) work

I personally would go for the extra dummy command, but any opinions are 
welcome before I write a patch.

-- 
Kind regards / met vriendelijke groet,

Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh


More information about the TYPO3-project-v4 mailing list