ImageGenerator uses @ error suppression — silent failures on missing GD/font #49
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
ImageGenerator.phpuses the@error suppression operator on all GD library function calls. If the GD extension is missing, a TTF font file is not found, or image creation fails, errors are completely silenced with no logging.Impact
Fix
@suppression with proper error checkingLog::add()at WARNING levelFile
source/packages/plg_system_mokoog/src/Helper/ImageGenerator.phpBranch created:
feature/49-imagegenerator-uses-error-suppression-si