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