mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
16 lines
318 B
PHP
16 lines
318 B
PHP
--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
|