Actions
Bug #58466
closedImage Processing preset not properly detected
Start date:
2014-05-03
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
In case of active open_basedir restriction the detection of available Image Manipulation libraries might fail.
My setup tells the open_basedir allows /usr/bin/gm, but not /usr/bin. Therefor the condition is_dir(/usr/bin/) && @is_file(/usr/bin/gm) returns TRUE, where is_dir is FALSE and is_file is TRUE.
surpresses the PHP Warning anyway.
The is_dir($path) is superflous, because @is_file does the same and the
Conclusion: it does not hurt to remove the @is_dir condition alltogether and for such restricted the environments as mine detect the library properly.
Actions