xref: /PHP-7.3/ext/gd/tests/bug77391.phpt (revision b0cfa28d)
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===DONE===
13--EXPECTF--
14resource(%d) of type (gd)
15===DONE===
16