Fix #53156: imagerectangle problem with point ordering#1425
Fix #53156: imagerectangle problem with point ordering#1425php-pulls merged 2 commits intophp:masterfrom
Conversation
Contrary to imagefilledrectangle(), imagerectangle() has the documented limitation that the given points have to be the upper left and the lower right corner, respectively. However, libgd already caters to upper right / lower left pairs, and not catering to the other two combinations seems to be an oversight.
|
Yes, making the whole thing more consistent sounds like a sane move Thanks!
|
Great! I'm going to merge to PHP 5.6 and master soon. |
|
Comment on behalf of cmb at php.net: Merged. |
Contrary to imagefilledrectangle(), imagerectangle() has the documented
limitation that the given points have to be the upper left and the lower right
corner, respectively. However, libgd already caters to upper right / lower left
pairs, and not catering to the other two combinations seems to be an oversight.
Reported upstream.
IMHO the patch should be applied to PHP 5.6, too. @pierrejoye @remicollet Any objections?