xref: /php-src/ext/gd/tests/bug77391.phpt (revision 85e5635a)
1--TEST--
2Bug #77391 (1bpp BMPs may fail to be loaded)
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.5', '<=')) die('skip upstream not yet fixed');
8if (!(imagetypes() & IMG_BMP)) die('skip BMP support required');
9?>
10--FILE--
11<?php
12var_dump(imagecreatefrombmp(__DIR__ . '/bug77391.bmp'));
13?>
14--EXPECT--
15object(GdImage)#1 (0) {
16}
17