Skip to content

Commit bf03427

Browse files
committed
add test
1 parent 1ded779 commit bf03427

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

ext/ftp/tests/gh20601.phpt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
GH-20601 (ftp_connect timeout overflow)
3+
--EXTENSIONS--
4+
ftp
5+
--FILE--
6+
<?php
7+
try {
8+
ftp_connect('127.0.0.1', 1024, PHP_INT_MAX);
9+
} catch (\ValueError $e) {
10+
echo $e->getMessage();
11+
}
12+
?>
13+
--EXPECT--
14+
timeout value overflow

0 commit comments

Comments
 (0)