com php-src: Added XFAIL test for bug #53640: ext/gd/tests/bug53640.phpt
| From: | Christoph Michael Becker | Date: | Sat, 11 Jul 2015 22:10:56 +0000 |
| Subject: | com php-src: Added XFAIL test for bug #53640: ext/gd/tests/bug53640.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87928@lists.php.net to get a copy of this message | ||
Commit: a8dbe655e55bad9564687edda274b7d3cb9b9674
Author: Christoph M. Becker <cmb@php.net> Sun, 12 Jul 2015 00:10:56 +0200
Parents: bac1fe743818a5a062d5fea7086b3f90f499749f
Branches: PHP-5.6 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a8dbe655e55bad9564687edda274b7d3cb9b9674
Log:
Added XFAIL test for bug #53640
Bugs:
https://bugs.php.net/53640
Changed paths:
A ext/gd/tests/bug53640.phpt
Diff:
diff --git a/ext/gd/tests/bug53640.phpt b/ext/gd/tests/bug53640.phpt
new file mode 100644
index 0000000..a16b7c2
--- /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};