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."/bogusdir"; 17 18$context = stream_context_create(array('ssl' => array('cafile' => __DIR__ . '/../../../ftp/tests/cert.pem'))); 19 20var_dump(opendir($path, $context)); 21?> 22--EXPECTF-- 23Warning: opendir(ftps://127.0.0.1:%d/bogusdir): Failed to open directory: FTP server reports 250 /bogusdir: No such file or directory 24 in %s on line %d 25bool(false) 26