Closed (fixed)
Project:
Image
Version:
6.x-1.x-dev
Component:
imagemagick toolkit
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2004 at 21:38 UTC
Updated:
15 Mar 2007 at 22:17 UTC
There is bug when running Drupal+Imagemagick in windows. PHP's Exec function does not work correctly in Windows then I have added exec wrapper that detects current mode and I Windows are detected then uses POpen. This code is taken from php.net exec function manual.
function _image_exec($cmd) {
if (substr(php_uname(), 0, 7) == "Windows"){
if ($h = popen("start \"bla\" $cmd", "r")) {
pclose($h);
return true;
} else {
return false;
}
} else {
return exec($cmd);
}
}
| Comment | File | Size | Author |
|---|---|---|---|
| image.inc-fix1.txt | 1.3 KB | tma0 |
Comments
Comment #1
drewish commentedlooks like this has already been applied
Comment #2
(not verified) commented