Skip to content

Commit

Permalink
Merge branch 'PHP-5.6' into PHP-7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Jun 17, 2016
2 parents 958f18c + ed0ec66 commit eb456d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion ext/gd/libgd/xbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ void gdImageXbmCtx(gdImagePtr image, char* file_name, int fg, gdIOCtx * out)
if (gdImageGetPixel(image, x, y) == fg) {
c |= b;
}
if ((b == 128) || (x == sx && y == sy)) {
if ((b == 128) || (x == sx - 1)) {
b = 1;
if (p) {
gdCtxPrintf(out, ", ");
Expand Down
2 changes: 0 additions & 2 deletions ext/gd/tests/bug53640.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ $white = imagecolorallocate($im, 255, 255, 255);
imagefilledrectangle($im, 2, 2, 6, 6, $white);
imagexbm($im, NULL);
?>
--XFAIL--
Padding is not implemented yet
--EXPECT--
#define image_width 9
#define image_height 9
Expand Down

0 comments on commit eb456d2

Please sign in to comment.