1--TEST--
2Test mkdir/rmdir cp932
3--SKIPIF--
4<?php
5include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";
6
7skip_if_not_win();
8if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
9skip_if_no_required_exts();
10skip_if_wrong_cp(932, "oem");
11
12?>
13--CONFLICTS--
14dir_cp932
15--INI--
16default_charset=cp932
17--FILE--
18<?php
19/*
20#vim: set fileencoding=cp932
21#vim: set encoding=cp932
22*/
23
24include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";
25
26$item = "�e�X�g�}���`�o�C�g�E�p�X"; // cp932 string
27$prefix = create_data("dir_cp932", "${item}42", 932);
28$path = $prefix . DIRECTORY_SEPARATOR . "${item}42";
29
30$subpath = $path . DIRECTORY_SEPARATOR . "${item}4";
31
32/* The mb dirname exists*/
33var_dump(file_exists($path));
34
35var_dump(mkdir($subpath));
36var_dump(file_exists($subpath));
37
38get_basename_with_cp($subpath, 932);
39
40var_dump(rmdir($subpath));
41remove_data("dir_cp932");
42
43?>
44--EXPECTF--
45bool(true)
46bool(true)
47bool(true)
48Active code page: 932
49getting basename of %s\�e�X�g�}���`�o�C�g�E�p�X42\�e�X�g�}���`�o�C�g�E�p�X4
50string(%d) "�e�X�g�}���`�o�C�g�E�p�X4"
51bool(true)
52string(%d) "%s\�e�X�g�}���`�o�C�g�E�p�X42\�e�X�g�}���`�o�C�g�E�p�X4"
53Active code page: %d
54bool(true)
55