1--TEST--
2opendir() with 'ftps://' stream.
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
13$ssl=true;
14require __DIR__ . "/../../../ftp/tests/server.inc";
15
16$path="ftps://127.0.0.1:" . $port."/";
17
18$context = stream_context_create(array('ssl' => array('cafile' =>  __DIR__ . '/../../../ftp/tests/cert.pem')));
19
20$ds=opendir($path, $context);
21var_dump($ds);
22while ($fn=readdir($ds)) {
23      var_dump($fn);
24}
25?>
26--EXPECTF--
27resource(%d) of type (stream)
28string(5) "file1"
29string(5) "file1"
30string(3) "fil"
31string(4) "b0rk"
32