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