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

fix compilation when imagemagick is v7 #12493

Closed
wants to merge 34 commits into from

Conversation

Izopi4a
Copy link
Member

@Izopi4a Izopi4a commented Dec 22, 2016

Hello!

when image magick version is 7 compilation fails

Imagick/imagick#180


preg_match("/ImageMagick ([0-9]+\.[0-9]+\.[0-9]+)/", imagickVersion["versionString"], imagickVersion);

if version_compare(imagickVersion[1], '7') < 0 {
Copy link
Contributor

@sergeyklay sergeyklay Dec 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'7' -> "7"

@sergeyklay
Copy link
Contributor

Also could you please update CHANGELOG.md

@sergeyklay sergeyklay added this to the 3.0.3 milestone Dec 22, 2016
will squash this one after that
@elibyy
Copy link

elibyy commented Dec 22, 2016

why not use method_exists?

@Izopi4a
Copy link
Member Author

Izopi4a commented Dec 22, 2016

well i might have to cuz preg_match might be broken in php5 ( for zephir ) , but if I use method exists , if they change that shit again in imagick 8 the code will look funny xD

am at work atm so i dont have much time i will check it tonight to find a good looking work around

@sergeyklay
Copy link
Contributor

@Izopi4a Well, as you can see tests fails

@Izopi4a
Copy link
Member Author

Izopi4a commented Dec 22, 2016

i will fix windows build these days because i need to dig into that

@Jurigag
Copy link
Contributor

Jurigag commented Dec 22, 2016

Class '\Imagick' does not implement static method: 'getVersion', hmmm imagick not loaded on windows or what ?

@sergeyklay
Copy link
Contributor

Fixed in the 3.0.x branch.

@sergeyklay sergeyklay closed this Dec 24, 2016
@sergeyklay sergeyklay assigned sergeyklay and unassigned sergeyklay Dec 24, 2016
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.

4 participants