Annotation of embedaddon/php/ext/ftp/tests/ftp_chmod_basic.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing ftp_chmod returns file mode
3: --CREDITS--
4: Rodrigo Moyle <eu [at] rodrigorm [dot] com [dot] br>
5: #testfest PHPSP on 2009-06-20
6: --SKIPIF--
7: <?php
8: require 'skipif.inc';
9: ?>
10: --FILE--
11: <?php
12: require 'server.inc';
13:
14: $ftp = ftp_connect('127.0.0.1', $port);
15: if (!$ftp) die("Couldn't connect to the server");
16: ftp_login($ftp, 'user', 'pass');
17:
18: var_dump(ftp_chmod($ftp, 0644, 'test.txt'));
19: ?>
20: --EXPECT--
21: int(420)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>