1--TEST--
2stat() on directory should return 40755 for ftp://
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.");
7?>
8--FILE--
9<?php
10
11require __DIR__ . "/../../../ftp/tests/server.inc";
12
13$path = "ftp://localhost:" . $port."/www";
14
15var_dump(stat($path)['mode']);
16?>
17==DONE==
18--EXPECTF--
19string(11) "SIZE /www
20"
21int(16877)
22==DONE==
23