php-src/ext/gd/tests/libgd00094-mb.phpt
Christoph M. Becker a375d54785
Migrate skip checks to --EXTENSIONS-- for ext/gd
Cf. PR #6787.

Closes GH-6994.
2021-05-22 15:38:51 +02:00

17 lines
467 B
PHP

--TEST--
libgd #94 (imagecreatefromxbm can crash if gdImageCreate fails)
--EXTENSIONS--
gd
--SKIPIF--
<?php
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)