1--TEST--
2Test mkdir/rmdir eucjp to UTF-8 path
3--SKIPIF--
4<?php
5include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc";
6
7skip_if_not_win();
8if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
9skip_if_no_required_exts();
10
11?>
12--FILE--
13<?php
14/*
15#vim: set fileencoding=eucjp
16#vim: set encoding=eucjp
17*/
18
19include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc";
20
21$item = iconv('eucjp', 'utf-8', "�ƥ��ȥޥ���Х��ȡ��ѥ�"); // EUCJP string
22$prefix = create_data("dir_eucjp", "${item}42");
23$path = $prefix . DIRECTORY_SEPARATOR . "${item}42";
24
25$subpath = $path . DIRECTORY_SEPARATOR . "${item}4";
26
27/* The mb dirname exists*/
28var_dump(file_exists($path));
29
30var_dump(mkdir($subpath));
31var_dump(file_exists($subpath));
32
33get_basename_with_cp($subpath, 65001);
34
35var_dump(rmdir($subpath));
36remove_data("dir_eucjp");
37
38?>
39===DONE===
40--EXPECTF--
41bool(true)
42bool(true)
43bool(true)
44Active code page: 65001
45getting basename of %s\テストマルチバイト・パス42\テストマルチバイト・パス4
46string(37) "テストマルチバイト・パス4"
47bool(true)
48string(%d) "%s\テストマルチバイト・パス42\テストマルチバイト・パス4"
49Active code page: %d
50bool(true)
51===DONE===
52