mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
23 lines
613 B
PHP
23 lines
613 B
PHP
--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};
|