xref: /PHP-8.1/ext/gd/tests/bug77391.phpt (revision a375d547)
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');
8?>
9--FILE--
10<?php
11var_dump(imagecreatefrombmp(__DIR__ . '/bug77391.bmp'));
12?>
13--EXPECT--
14object(GdImage)#1 (0) {
15}
16