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--EXPECT--
19string(20) "CWD /one/two/three
20"
21string(14) "CWD /one/two
22"
23string(10) "CWD /one
24"
25string(7) "CWD /
26"
27string(7) "MKD /
28"
29string(10) "MKD /one
30"
31string(14) "MKD /one/two
32"
33string(20) "MKD /one/two/three
34"
35