mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
20 lines
392 B
PHP
20 lines
392 B
PHP
--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)
|