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