Skip to content

Commit 6b12d34

Browse files
committed
add test
1 parent f878058 commit 6b12d34

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

ext/gd/tests/gh20660-2.phpt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--TEST--
2+
GH-20660 (imagefilleellipse() overflow)
3+
--EXTENSIONS--
4+
gd
5+
--SKIPIF--
6+
<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?>
7+
--FILE--
8+
<?php
9+
$im = imagecreate(8, 8);
10+
imageellipse($im, 255, 255, "1234567890", 64, 0);
11+
imagefilledellipse($im, 255, 255, "1234567890", 64, 0);
12+
echo "OK";
13+
?>
14+
--EXPECT--
15+
OK

ext/gd/tests/gh20660.phpt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
GH-20660 (imageellipse() overflow)
3+
--EXTENSIONS--
4+
gd
5+
--SKIPIF--
6+
<?php if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); ?>
7+
--FILE--
8+
<?php
9+
$im = imagecreate(8, 8);
10+
imageellipse($im, 255, 255, "1234567890", 64, 0);
11+
echo "OK";
12+
?>
13+
--EXPECT--
14+
OK

0 commit comments

Comments
 (0)