summaryrefslogtreecommitdiff
path: root/ext/standard/tests/streams/bug77680.phpt
blob: 7fe8062e6ef37abe0536140cc99c63b4a8f74344 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--TEST--
Recursive mkdir() on ftp should create missing directories.
--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
$bug77680=1;

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

$path = "ftp://localhost:" . $port."/one/two/three/";
mkdir($path, 0755, true);

?>
--EXPECTF--
string(20) "CWD /one/two/three
"
string(14) "CWD /one/two
"
string(10) "CWD /one
"
string(7) "CWD /
"
string(7) "MKD /
"
string(10) "MKD /one
"
string(14) "MKD /one/two
"
string(20) "MKD /one/two/three
"