xref: /PHP-8.0/ext/ftp/tests/bug79100.phpt (revision 42c72ef4)
1--TEST--
2Bug #79100 (Wrong FTP error messages)
3--SKIPIF--
4<?php
5require 'skipif.inc';
6?>
7--FILE--
8<?php
9$bug79100 = true;
10require 'server.inc';
11
12$ftp = ftp_connect("127.0.0.1", $port);
13if (!$ftp) die("Couldn't connect to the server");
14var_dump(ftp_login($ftp, 'user', 'pass'));
15var_dump(ftp_set_option($ftp, FTP_TIMEOUT_SEC, 1));
16ftp_systype($ftp);
17?>
18--EXPECTF--
19bool(true)
20bool(true)
21
22Warning: ftp_systype(): %rConnection|Operation%r timed out in %s on line %d