summaryrefslogtreecommitdiff
path: root/ext/gd/tests/libgd00094.phpt
blob: f9cbeec8719162283987add6170762d4f6c1976a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
libgd #94 (imagecreatefromxbm can crash if gdImageCreate fails)
--SKIPIF--
<?php
    if (!extension_loaded('gd')) die("skip gd extension not available\n");
    if (!GD_BUNDLED) die("skip requires bundled GD library\n");
?>
--FILE--
<?php
$im = imagecreatefromxbm(__DIR__ . '/libgd00094.xbm');
var_dump($im);
?>
--EXPECTF--
Warning: imagecreatefromxbm(): "%slibgd00094.xbm" is not a valid XBM file in %slibgd00094.php on line %d
bool(false)