mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
b0cfa28d6d
We port the upstream fix[1]. [1] <https://github.com/libgd/libgd/commit/d0859134fcbd8817f87895bd1cb158096568a7a2>
16 lines
377 B
PHP
16 lines
377 B
PHP
--TEST--
|
|
Bug #77391 (1bpp BMPs may fail to be loaded)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die('skip gd extension not available');
|
|
if (!GD_BUNDLED && version_compare(GD_VERSION, '2.2.5', '<=')) die('skip upstream not yet fixed');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(imagecreatefrombmp(__DIR__ . '/bug77391.bmp'));
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
resource(%d) of type (gd)
|
|
===DONE===
|