1--TEST--
2Testing ftp_rawlist basic functionality
3--CREDITS--
4Gabriel Caruso (carusogabriel34@gmail.com)
5--EXTENSIONS--
6ftp
7pcntl
8--FILE--
9<?php
10require 'server.inc';
11
12$ftp = ftp_connect('127.0.0.1', $port);
13ftp_login($ftp, 'user', 'pass');
14$ftp or die("Couldn't connect to the server");
15
16$result = ftp_rawlist($ftp, 'www/');
17var_dump(is_array($result));
18var_dump($result);
19ftp_close($ftp);
20?>
21--EXPECT--
22bool(true)
23array(3) {
24  [0]=>
25  string(5) "file1"
26  [1]=>
27  string(5) "file1"
28  [2]=>
29  string(9) "file
30b0rk"
31}
32