summaryrefslogtreecommitdiff
path: root/ext/ftp/tests/ftp_mlsd_missing_directory.phpt
blob: 3656ef92f7117c90bea525f2037946ec19731ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Testing ftp_mlsd returns false on server error
--CREDITS--
Andreas Treichel <gmblar+github [at] gmail [dot] com>
--SKIPIF--
<?php
require 'skipif.inc';
?>
--FILE--
<?php
require 'server.inc';

$ftp = ftp_connect('127.0.0.1', $port);
ftp_login($ftp, 'user', 'pass');
if (!$ftp) die("Couldn't connect to the server");

var_dump(ftp_mlsd($ftp, 'no_exists/'));
?>
--EXPECT--
bool(false)