xref: /PHP-8.2/ext/ftp/tests/bug7216.phpt (revision e9f783fc)
1--TEST--
2Bug #7216 (ftp_mkdir returns nothing)
3--EXTENSIONS--
4ftp
5pcntl
6--FILE--
7<?php
8$bug7216=true;
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@'));
15var_dump(ftp_mkdir($ftp, 'CVS'));
16
17?>
18--EXPECT--
19bool(true)
20string(3) "CVS"
21