mirror of
https://github.com/php/php-src.git
synced 2024-10-04 00:06:16 +00:00
16 lines
318 B
Plaintext
16 lines
318 B
Plaintext
|
--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
|