1--TEST--
2FTP basic ftp_rename calls
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
13ftp_login($ftp, 'user', 'pass');
14
15var_dump(ftp_rename($ftp, 'existing_file', 'nonexisting_file'));
16var_dump(ftp_rename($ftp, 'nonexisting_file', 'nonexisting_file'));
17?>
18--EXPECTF--
19bool(true)
20
21Warning: ftp_rename(): No such file or directory in %sftp_rename_basic1.php on line 10
22bool(false)
23