Annotation of embedaddon/php/ext/gd/tests/bug45799.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #45799 (imagepng() crashes on empty image).
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('gd')) die("skip gd extension not available\n");
! 6: ?>
! 7: --FILE--
! 8: <?php
! 9: $img = imagecreate(500,500);
! 10: imagepng($img);
! 11: imagedestroy($img);
! 12: ?>
! 13: --EXPECTF--
! 14:
! 15: Warning: imagepng(): gd-png error: no colors in palette in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>