summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmb@php.net>2015-07-12 00:10:56 +0200
committerChristoph M. Becker <cmb@php.net>2015-07-12 00:10:56 +0200
commita8dbe655e55bad9564687edda274b7d3cb9b9674 (patch)
tree80fb44d7bc720cdfaecb8698f0ddd34de1dfece7
parentbac1fe743818a5a062d5fea7086b3f90f499749f (diff)
downloadphp-git-a8dbe655e55bad9564687edda274b7d3cb9b9674.tar.gz
Added XFAIL test for bug #53640
-rw-r--r--ext/gd/tests/bug53640.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/gd/tests/bug53640.phpt b/ext/gd/tests/bug53640.phpt
new file mode 100644
index 0000000000..a16b7c24c0
--- /dev/null
+++ b/ext/gd/tests/bug53640.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Bug #53640 (XBM images require width to be multiple of 8)
+--SKIPIF--
+<?php
+if (!extension_loaded('gd')) die('skip gd extension not available');
+?>
+--FILE--
+<?php
+$im = imagecreate(9, 9);
+imagecolorallocate($im, 0, 0, 0); // background
+$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
+static unsigned char image_bits[] = {
+ 0xFF, 0x01, 0xFF, 0x01, 0x83, 0x01, 0x83, 0x01, 0x83, 0x01, 0x83, 0x01,
+ 0x83, 0x01, 0xFF, 0x01, 0xFF, 0x01};