xref: /PHP-8.0/ext/ftp/tests/bug27809.phpt (revision 1f655451)
1--TEST--
2Bug #27809 (ftp_systype returns null)
3--SKIPIF--
4<?php
5require 'skipif.inc';
6?>
7--FILE--
8<?php
9$bug27809=true;
10require 'server.inc';
11
12$ftp = ftp_connect('127.0.0.1', $port);
13if (!$ftp) die("Couldn't connect to the server");
14
15var_dump(ftp_login($ftp, 'anonymous', 'IEUser@'));
16var_dump(ftp_systype($ftp));
17
18?>
19--EXPECT--
20bool(true)
21string(6) "OS/400"
22