Skip to content

refactor: remove unnecessary imagedestroy() calls#6478

Merged
gharlan merged 2 commits into5.xfrom
refactor/remove-imagedestroy
Apr 10, 2026
Merged

refactor: remove unnecessary imagedestroy() calls#6478
gharlan merged 2 commits into5.xfrom
refactor/remove-imagedestroy

Conversation

@gharlan
Copy link
Copy Markdown
Member

@gharlan gharlan commented Apr 10, 2026

Since PHP 8.0, GD images are GdImage objects that are automatically freed by the garbage collector, making imagedestroy() a no-op.

Since PHP 8.0, GD images are `GdImage` objects that are automatically
freed by the garbage collector, making `imagedestroy()` a no-op.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gharlan gharlan added this to the REDAXO 5.21.1 milestone Apr 10, 2026
@gharlan gharlan merged commit 3b86272 into 5.x Apr 10, 2026
18 checks passed
@gharlan gharlan deleted the refactor/remove-imagedestroy branch April 10, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant