xref: /PHP-8.1/ext/gd/tests/bug45799.phpt (revision 0aaad46c)
1--TEST--
2Bug #45799 (imagepng() crashes on empty image).
3--EXTENSIONS--
4gd
5--FILE--
6<?php
7$img = imagecreate(500,500);
8imagepng($img);
9imagedestroy($img);
10?>
11--EXPECTF--
12Warning: imagepng(): gd-png error: no colors in palette%win %s on line %d
13