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