]> granicus.if.org Git - php/commit
Fix #77272: imagescale() may return image resource on failure
authorChristoph M. Becker <cmbecker69@gmx.de>
Thu, 10 Jan 2019 13:03:07 +0000 (14:03 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Thu, 10 Jan 2019 13:05:09 +0000 (14:05 +0100)
commit772b1cb245ebe19e220a2552d1e2b700d15f2c68
tree1daff0a9797f361521be6bbafb98164a321c3a7f
parent5d33024a5dc40a45c986deb37282e54e80058b6f
Fix #77272: imagescale() may return image resource on failure

`_gdScaleHoriz()` and `_gdScaleVert()` may fail, but don't signal
failure since they are void functions.  We change that according to
upstream libgd.

We also remove the unused `Scale()` function, which doesn't exist in
upstream libgd either, right away.
NEWS
ext/gd/libgd/gd_interpolation.c
ext/gd/tests/bug77272.phpt [new file with mode: 0644]