mirror of
https://github.com/php/php-src.git
synced 2026-04-27 10:16:41 +02:00
928624ed8a
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de> Closes GH-9012.
32 lines
516 B
PHP
32 lines
516 B
PHP
--TEST--
|
|
Testing ftp_rawlist basic functionality
|
|
--CREDITS--
|
|
Gabriel Caruso (carusogabriel34@gmail.com)
|
|
--EXTENSIONS--
|
|
ftp
|
|
pcntl
|
|
--FILE--
|
|
<?php
|
|
require 'server.inc';
|
|
|
|
$ftp = ftp_connect('127.0.0.1', $port);
|
|
ftp_login($ftp, 'user', 'pass');
|
|
$ftp or die("Couldn't connect to the server");
|
|
|
|
$result = ftp_rawlist($ftp, 'www/');
|
|
var_dump(is_array($result));
|
|
var_dump($result);
|
|
ftp_close($ftp);
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
array(3) {
|
|
[0]=>
|
|
string(5) "file1"
|
|
[1]=>
|
|
string(5) "file1"
|
|
[2]=>
|
|
string(9) "file
|
|
b0rk"
|
|
}
|