xref: /php-src/ext/ftp/tests/ftp_connect_001.phpt (revision 492093ac)
1--TEST--
2ftp_connect - return FALSE if connection fails and Waning is generated
3--EXTENSIONS--
4ftp
5--FILE--
6<?php
7$ftp = ftp_connect('dummy-host-name', 21, 5);
8var_dump($ftp);
9?>
10--EXPECTF--
11Warning: ftp_connect(): php_network_getaddresses: getaddrinfo for dummy-host-name failed: %s in %s on line %d
12bool(false)
13