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