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