1--TEST-- 2FTP login (SSL) 3--SKIPIF-- 4<?php 5$ssl = 1; 6require 'skipif.inc'; 7if (!function_exists("ftp_ssl_connect")) die("skip ftp_ssl is disabled"); 8?> 9--FILE-- 10<?php 11$ssl = 1; 12require 'server.inc'; 13 14$ftp = ftp_ssl_connect('127.0.0.1', $port); 15if (!$ftp) die("Couldn't connect to the server"); 16 17var_dump(ftp_login($ftp, 'user', 'pass')); 18var_dump(ftp_raw($ftp, 'HELP')); 19var_dump(ftp_raw($ftp, 'HELP HELP')); 20 21var_dump(ftp_close($ftp)); 22?> 23--EXPECT-- 24bool(true) 25array(4) { 26 [0]=> 27 string(55) "214-There is help available for the following commands:" 28 [1]=> 29 string(5) " USER" 30 [2]=> 31 string(5) " HELP" 32 [3]=> 33 string(15) "214 end of list" 34} 35array(1) { 36 [0]=> 37 string(39) "214 Syntax: HELP [<SP> <string>] <CRLF>" 38} 39bool(true) 40