summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug77765.phpt
blob: e048db53e48d68d311008f3cd355b28f168a34a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
stat() on directory should return 40755 for ftp://
--SKIPIF--
<?php
if (array_search('ftp',stream_get_wrappers()) === FALSE) die("skip ftp wrapper not available.");
if (!function_exists('pcntl_fork')) die("skip pcntl_fork() not available.");
?>
--FILE--
<?php

require __DIR__ . "/../../../ftp/tests/server.inc";

$path = "ftp://localhost:" . $port."/www";

var_dump(stat($path)['mode']);
?>
--EXPECTF--
string(11) "SIZE /www
"
int(16877)