summaryrefslogtreecommitdiff
path: root/ext/gd/tests/libgd00094-mb.phpt
blob: 7ce24a43b22c2e376ddccfc275532ec5a90bd5e5 (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-mb.php on line %d
bool(false)