summaryrefslogtreecommitdiff
path: root/ext/gd/tests/bug45799.phpt
blob: a28f940b76e47e792aa68ac9a084ee36151cfa97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #45799 (imagepng() crashes on empty image).
--SKIPIF--
<?php
	if (!extension_loaded('gd')) die("skip gd extension not available\n");
?>
--FILE--
<?php
$img = imagecreate(500,500);
imagepng($img);
imagedestroy($img);
?>
--EXPECTF--

Warning: imagepng(): gd-png error: no colors in palette in %s on line %d