Upstream fix from https://bitbucket.org/libgd/gd-libgd/issue/75
Merge branch 'PHP-5.5'

* PHP-5.5:
  Upstream fix from https://bitbucket.org/libgd/gd-libgd/issue/75