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