1--TEST--
2Recursive mkdir() on ftp should create missing directories.
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$bug77680=1;
11
12require __DIR__ . "/../../../ftp/tests/server.inc";
13
14$path = "ftp://localhost:" . $port."/one/two/three/";
15mkdir($path, 0755, true);
16
17?>
18==DONE==
19--EXPECTF--
20string(20) "CWD /one/two/three
21"
22string(14) "CWD /one/two
23"
24string(10) "CWD /one
25"
26string(7) "CWD /
27"
28string(7) "MKD /
29"
30string(10) "MKD /one
31"
32string(14) "MKD /one/two
33"
34string(20) "MKD /one/two/three
35"
36==DONE==
37