Skip to content

Comments

Fix: only call imagedestroy() on PHP < 8#358

Open
AH72KING wants to merge 1 commit intorosell-dk:masterfrom
AH72KING:fix/php-85-deprecations
Open

Fix: only call imagedestroy() on PHP < 8#358
AH72KING wants to merge 1 commit intorosell-dk:masterfrom
AH72KING:fix/php-85-deprecations

Conversation

@AH72KING
Copy link

Added a check so that imagedestroy() is only called on PHP versions below 8, preventing unnecessary calls on newer PHP versions where it has no effect.

Private function added which will wrap & avoids deprecation warnings while keeping backward compatibility.

imagedestroy() has no effect since PHP 8.0 and is deprecated in PHP 8.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant