We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b301e3 commit 492093aCopy full SHA for 492093a
ext/ftp/tests/ftp_connect_001.phpt
@@ -0,0 +1,12 @@
1
+--TEST--
2
+ftp_connect - return FALSE if connection fails and Waning is generated
3
+--EXTENSIONS--
4
+ftp
5
+--FILE--
6
+<?php
7
+$ftp = ftp_connect('dummy-host-name', 21, 5);
8
+var_dump($ftp);
9
+?>
10
+--EXPECTF--
11
+Warning: ftp_connect(): php_network_getaddresses: getaddrinfo for dummy-host-name failed: %s in %s on line %d
12
+bool(false)
0 commit comments