mirror of
https://github.com/php/php-src.git
synced 2024-10-20 07:53:58 +00:00
15 lines
406 B
PHP
15 lines
406 B
PHP
--TEST--
|
|
Bug #39508 (imagefill crashes with small images 3 pixels or less)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die("skip gd extension not available\n");
|
|
if (!GD_BUNDLED) die('skip external GD libraries always fail');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$img =imagecreatefromgd2part("foo.png",0, 100, 0, 100);
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Warning: imagecreatefromgd2part(): Zero width or height not allowed in %s on line %d
|