summaryrefslogtreecommitdiff
path: root/ext/gd/tests/bug39286-mb.phpt
blob: d926fac38ef4cac1a6e5aa32f1ba2c607bb6e7f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--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");
?>
--FILE--
<?php
$img =imagecreatefromgd2part("foo私はガラスを食べられます.png",0, 100, 0, 100);
?>
--EXPECTF--

Warning: imagecreatefromgd2part(): Zero width or height not allowed in %s on line %d