/**
* FtpClient object constructor
*
* @param array $options Associative array of options to set
*
* @since 1.5
*/
public function __construct(array $options = array())
{
// If default transfer type is not set, set it to autoascii detect
if (!isset($options['type'])) {
$options['type'] = FTP_BINARY;
}
$this->setOptions($options);
if (FTP_NATIVE) {
BufferStreamHandler::stream_register();
}
}