xref: /PHP-7.3/ext/ftp/tests/ftp_set_option.phpt (revision 5153413e)
1--TEST--
2Testing ftp_set_option basic functionality
3--CREDITS--
4Gabriel Caruso (carusogabriel34@gmail.com)
5--SKIPIF--
6<?php require 'skipif.inc'; ?>
7--FILE--
8<?php
9require 'server.inc';
10
11$ftp = ftp_connect('127.0.0.1', $port);
12ftp_login($ftp, 'user', 'pass');
13$ftp or die("Couldn't connect to the server");
14
15var_dump(ftp_set_option($ftp, FTP_TIMEOUT_SEC, 10));
16var_dump(ftp_set_option($ftp, FTP_AUTOSEEK, false));
17var_dump(ftp_set_option($ftp, FTP_USEPASVADDRESS, true));
18?>
19--EXPECT--
20bool(true)
21bool(true)
22bool(true)
23