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