summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_mbregex.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2016-06-15 20:58:06 +0200
committerChristoph M. Becker <cmb@php.net>2016-06-16 13:59:00 +0200
commit8aa511f1fc8123bba6107fa856b0b6bf298de87c (patch)
treecafc844e4cc1dd45f66c3140b8196b60b34fd209 /ext/mbstring/php_mbregex.c
parent8267a5fba75baf938306d1169807be57d646c6df (diff)
downloadphp-git-8aa511f1fc8123bba6107fa856b0b6bf298de87c.tar.gz
Fix #43475: Styled thick horizontal lines are scrambled
Thick lines are drawn by gdImageFilledRectangle(), which iterates over the x ordinate first (Z order) to apply the style pattern. While this works fine for vertical and diagonal lines, it obviously fails for horizontal lines, which have to be iterated over in N order. To fix this bug, we introduce the helpers gdImageFilled(H|V)Rectangle(), which may be reused for other purposes as well. This is basically the same fix as libgd/libgd/c2b91dbc.
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
0 files changed, 0 insertions, 0 deletions