Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add extension_loaded('imagick') and class_exists('Imagick') check at ImageMagickHandler::__construct #1546

Merged
merged 1 commit into from
Nov 27, 2018

Conversation

samsonasik
Copy link
Member

Like in the GDHandler::__construct(), I think in ImageMagickHandler::__construct() needs the extension_loaded() check as well, for it, use extension_loaded('imagick') check.

Checklist:

  • Securely signed commits

@samsonasik
Copy link
Member Author

samsonasik commented Nov 27, 2018

somehow, the Imagick class exists need check in some system, so added class_exists as well:

if (! (extension_loaded('imagick') || class_exists('Imagick')))

@samsonasik samsonasik changed the title add extension_loaded('imagick') check at ImageMagickHandler::__construct add extension_loaded('imagick') and class_exists('Imagick') check at ImageMagickHandler::__construct Nov 27, 2018
@lonnieezell lonnieezell merged commit cdff909 into codeigniter4:develop Nov 27, 2018
@samsonasik samsonasik deleted the ext-imagick-check branch November 28, 2018 11:20
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.

2 participants