pear/Image_Canvas — pull request #3 by adrianbj (2013-06-29 15:08:52+00:00)
Title: Fix for incorrect GD version detection

This change fixes:
https://pear.php.net/bugs/bug.php?id=19954

I haven't tested this thoroughly, but it solves the recent problem with GD 2.1.0 (released with PHP 5.4.15) being detected as 1.x

From what I can tell, it should work for all versions just fine though.