mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
a375d54785
Cf. PR #6787. Closes GH-6994.
17 lines
392 B
PHP
17 lines
392 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.php on line %d
|
|
bool(false)
|