1--TEST--
2Bug #72771. FTPS to FTP downgrade not allowed when server doesn't support AUTH TLS or AUTH SSL.
3--EXTENSIONS--
4openssl
5--SKIPIF--
6<?php
7if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
8if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available.");
9?>
10--FILE--
11<?php
12
13require __DIR__ . "/../../../ftp/tests/server.inc";
14
15$path="ftps://127.0.0.1:" . $port."/";
16
17$ds=opendir($path, $context);
18var_dump($ds);
19?>
20--EXPECTF--
21Warning: opendir(ftps://127.0.0.1:%d/): Failed to open directory: Server doesn't support FTPS. in %s on line %d
22bool(false)
23