mirror of
https://github.com/php/php-src.git
synced 2026-04-25 08:58:28 +02:00
e9f783fcdd
For rationale, see #6787 Extensions migrated in part 3: * ftp * gmp * iconv * opcache * shmop
20 lines
375 B
PHP
20 lines
375 B
PHP
--TEST--
|
|
Testing ftp_mlsd returns false on server error
|
|
--CREDITS--
|
|
Andreas Treichel <gmblar+github [at] gmail [dot] com>
|
|
--EXTENSIONS--
|
|
ftp
|
|
pcntl
|
|
--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)
|